SampleStat function ( long arg0 , double arg1 ) { numSamples += arg0 ; if ( numSamples == 1 ) { a0 = a1 = arg1 ; s0 = 0.0 ; } else { a1 = a0 + ( arg1 - a0 ) / numSamples ; s1 = s0 + ( arg1 - a0 ) * ( arg1 - a1 ) ; a0 = a1 ; s0 = s1 ; } return this ; }
add some sample and a partial sum to the running stat . note , min/max is not evaluated using this method . concode_field_sep double a1 concode_elem_sep double min concode_elem_sep double max concode_elem_sep MinMax minmax concode_elem_sep double DEFAULT_MIN_VALUE concode_elem_sep double s0 concode_elem_sep double DEFAULT_MAX_VALUE concode_elem_sep double s1 concode_elem_sep long numSamples concode_elem_sep double a0 concode_field_sep void copyTo concode_elem_sep double min concode_elem_sep double min concode_elem_sep double variance concode_elem_sep double max concode_elem_sep double max concode_elem_sep long numSamples concode_elem_sep double mean concode_elem_sep void reset concode_elem_sep void reset concode_elem_sep void reset concode_elem_sep void reset concode_elem_sep String toString concode_elem_sep double stddev