|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest
org.apache.commons.math3.stat.descriptive.moment.VarianceTest
public class VarianceTest
Test cases for the UnivariateStatistic class.
| Field Summary | |
|---|---|
protected Variance |
stat
|
| Fields inherited from class org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest |
|---|
smallSamples |
| 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 |
| Constructor Summary | |
|---|---|
VarianceTest()
|
|
| Method Summary | |
|---|---|
double |
expectedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest |
double |
expectedWeightedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest |
UnivariateStatistic |
getUnivariateStatistic()
Return a new instance of the statistic |
protected double |
populationVariance(double[] v)
Definitional formula for population variance |
void |
testNaN()
Make sure Double.NaN is returned iff n = 0 |
void |
testPopulation()
Test population version of variance |
void |
testWeightedVariance()
|
| Methods inherited from class org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest |
|---|
checkClearValue, testConsistency, testCopyConsistency, testEqualsAndHashCode, testIncrementation, testMomentSmallSamples, testSerial, testSerialization |
| Methods inherited from class org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest |
|---|
getTolerance, testCopy, testEvaluateArraySegment, testEvaluateArraySegmentWeighted, testEvaluation, testWeightedConsistency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Variance stat
| Constructor Detail |
|---|
public VarianceTest()
| Method Detail |
|---|
public UnivariateStatistic getUnivariateStatistic()
getUnivariateStatistic in class StorelessUnivariateStatisticAbstractTestpublic double expectedValue()
expectedValue in class StorelessUnivariateStatisticAbstractTestpublic double expectedWeightedValue()
public void testNaN()
public void testPopulation()
protected double populationVariance(double[] v)
public void testWeightedVariance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||