public int value ( ) { int end = Math . min ( _history . length , _index ) ; int value = 0 ; for ( int ii = 0 ; ii < end ; ii ++ ) { value += _history [ ii ] ; } return ( end > 0 ) ? ( value / end ) : 0 ; }
Returns the current averaged value .