adds a new sample to this mean . in case the window is full the oldest value will be replaced by this new value . concode_field_sep int last_value concode_elem_sep float mean concode_elem_sep float values[] concode_elem_sep int added_values concode_elem_sep boolean dirty concode_field_sep float getLatest concode_elem_sep int getWindowSize concode_elem_sep float getOldest concode_elem_sep boolean hasEnoughData concode_elem_sep void clear concode_elem_sep float[] getWindowValues concode_elem_sep float getMean concode_elem_sep float standardDeviation
void function ( float arg0 ) { if ( added_values < values . length ) added_values ++ ; values [ last_value ++ ] = arg0 ; if ( last_value > values . length - 1 ) last_value = 0 ; dirty = true ; }