org.apache.commons.math3.stat.descriptive.summary
Class ProductTest

java.lang.Object
  extended by org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
      extended by org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest
          extended by org.apache.commons.math3.stat.descriptive.summary.ProductTest

public class ProductTest
extends StorelessUnivariateStatisticAbstractTest

Test cases for the UnivariateStatistic class.

Version:
$Id: ProductTest.java 1244107 2012-02-14 16:17:55Z erans $

Field Summary
protected  Product 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
ProductTest()
           
 
Method Summary
protected  void checkClearValue(StorelessUnivariateStatistic statistic)
           
 double expectedValue()
          Expected value for the testArray defined in UnivariateStatisticAbstractTest
 double expectedWeightedValue()
          Expected value for the testArray defined in UnivariateStatisticAbstractTest
 double getTolerance()
          
 UnivariateStatistic getUnivariateStatistic()
          Return a new instance of the statistic
 void testSpecialValues()
           
 void testWeightedProduct()
           
 
Methods inherited from class org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest
testConsistency, testCopyConsistency, testEqualsAndHashCode, testIncrementation, testMomentSmallSamples, testSerial, testSerialization
 
Methods inherited from class org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
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

stat

protected Product stat
Constructor Detail

ProductTest

public ProductTest()
Method Detail

getUnivariateStatistic

public UnivariateStatistic getUnivariateStatistic()
Return a new instance of the statistic

Specified by:
getUnivariateStatistic in class StorelessUnivariateStatisticAbstractTest

getTolerance

public double getTolerance()

Overrides:
getTolerance in class UnivariateStatisticAbstractTest

expectedValue

public double expectedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest

Specified by:
expectedValue in class StorelessUnivariateStatisticAbstractTest

expectedWeightedValue

public double expectedWeightedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest


testSpecialValues

public void testSpecialValues()

testWeightedProduct

public void testWeightedProduct()

checkClearValue

protected void checkClearValue(StorelessUnivariateStatistic statistic)
Overrides:
checkClearValue in class StorelessUnivariateStatisticAbstractTest


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.