git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141439 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2004-09-01 16:23:11 +00:00
parent 0493b48d11
commit 411c6c9b2a
1 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
* one of the threads invokes the <code>increment()</code> or
* <code>clear()</code> method, it must be synchronized externally.
*
* @version $Revision: 1.23 $ $Date: 2004/09/01 15:54:39 $
* @version $Revision: 1.24 $ $Date: 2004/09/01 16:23:11 $
*/
public class StandardDeviation extends AbstractStorelessUnivariateStatistic
implements Serializable {
@ -174,8 +174,7 @@ public class StandardDeviation extends AbstractStorelessUnivariateStatistic
* @param values the input array
* @param mean the precomputed mean value
* @return the standard deviation of the values or Double.NaN if length = 0
* @throws IllegalArgumentException if the array is null or the array index
* parameters are not valid
* @throws IllegalArgumentException if the array is null
*/
public double evaluate(final double[] values, final double mean) {
return Math.sqrt(variance.evaluate(values, mean));