question: public static double simpleTest ( double [ ] test ) { double scale = 1. / ( test . length + 1. ) ; double maxdev = Double . NEGATIVE_INFINITY ; for ( int i = 0 ; i < test . length ; i ++ ) { double expected = ( i + 1. ) * scale ; double dev = Math . abs ( test [ i ] - expected ) ; if ( dev > maxdev ) { maxdev = dev ; } } return Math . abs ( maxdev ) ; }
target:  Simplest version of the test: test if a sorted array is approximately uniform distributed on [0:1].