normalize the buffer . the normalization is done so that the summation of elements in the buffer is 1 . concode_field_sep boolean isLog concode_elem_sep int id concode_elem_sep boolean wasUsed concode_elem_sep double[] numerator concode_elem_sep double denominator concode_field_sep float[] getValues concode_elem_sep void logNormalizeToSum concode_elem_sep boolean logFloor concode_elem_sep boolean wasUsed concode_elem_sep void logNormalizeNonZero concode_elem_sep float getValue concode_elem_sep void normalize concode_elem_sep void setValue concode_elem_sep void logAccumulate concode_elem_sep void logAccumulate concode_elem_sep void accumulate concode_elem_sep void accumulate concode_elem_sep void dump concode_elem_sep boolean floor concode_elem_sep void logNormalize
void function ( ) { assert ! isLog ; float loc0 = 0.0f ; for ( double loc1 : numerator ) { loc0 += loc1 ; } float loc2 = ( float ) ( 1.0 / loc0 ) ; for ( int loc1 = 0 ; loc1 < numerator . length ; loc1 ++ ) { numerator [ loc1 ] *= loc2 ; } denominator = 1.0 ; }