public void computeValue ( DoubleVector values ) { if ( this . isType ( ) ) { setValues ( values ) ; double sumDif = 0.0 ; this . value = this . values . sumOfValues ( ) / ( double ) values . numValues ( ) ; for ( int i = 0 ; i < this . values . numValues ( ) ; i ++ ) { double dif = this . values . getValue ( i ) - this . value ; sumDif += Math . pow ( dif , 2 ) ; } sumDif = sumDif / this . values . numValues ( ) ; this . std = Math . sqrt ( sumDif ) ; } }
Calculates the value of measure