org.apache.commons.math3.stat.descriptive.moment
Class StandardDeviationTest
java.lang.Object
org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest
org.apache.commons.math3.stat.descriptive.moment.StandardDeviationTest
public class StandardDeviationTest
- extends StorelessUnivariateStatisticAbstractTest
Test cases for the UnivariateStatistic class.
- Version:
- $Id: StandardDeviationTest.java 1244107 2012-02-14 16:17:55Z erans $
| Fields inherited from class org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest |
fourthMoment, geoMean, identicalWeightsArray, kurt, max, mean, median, min, percentile5, percentile95, product, secondMoment, skew, std, sum, sumLog, sumSq, testArray, testWeightsArray, thirdMoment, tolerance, unitWeightsArray, var, weightedMean, weightedProduct, weightedStd, weightedSum, weightedVar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stat
protected StandardDeviation stat
StandardDeviationTest
public StandardDeviationTest()
getUnivariateStatistic
public UnivariateStatistic getUnivariateStatistic()
- Return a new instance of the statistic
- Specified by:
getUnivariateStatistic in class StorelessUnivariateStatisticAbstractTest
expectedValue
public double expectedValue()
- Expected value for the testArray defined in UnivariateStatisticAbstractTest
- Specified by:
expectedValue in class StorelessUnivariateStatisticAbstractTest
testNaN
public void testNaN()
- Make sure Double.NaN is returned iff n = 0
testPopulation
public void testPopulation()
- Test population version of variance
populationStandardDeviation
protected double populationStandardDeviation(double[] v)
- Definitional formula for population standard deviation
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.