double function ( double [ ] arg0 , double [ ] arg1 ) { assert arg0 . length == arg1 . length ; double loc0 = 0 ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { loc0 += arg0 [ loc1 ] * arg1 [ loc1 ] ; } return loc0 / DoubleStream . of ( arg1 ) . sum ( ) ; }
calculates a weighted mean average numbers and weights need to have the same count concode_field_sep PlaceHolder placeHolder concode_field_sep double mode concode_elem_sep double midrange concode_elem_sep double median concode_elem_sep double generalizedMean concode_elem_sep double arithmeticMean concode_elem_sep double geometricMean concode_elem_sep double harmonicMean concode_elem_sep double quadraticMean concode_elem_sep double contraHarmonicMean