question: private void normalize ( double [ ] in ) { double max = 0d ; for ( double d : in ) { max = Math . max ( max , d ) ; } for ( int i = 0 ; i < in . length ; i ++ ) { in [ i ] = in [ i ] / max ; } }
target:  Applies max norm to the histogram.