类 RandomPercentileTest
java.lang.Object
org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
org.hipparchus.stat.descriptive.StorelessUnivariateStatisticAbstractTest
org.hipparchus.stat.descriptive.rank.RandomPercentileTest
RandomPercentileTest
类的测试用例。一些测试是从PSquarePercentileTest中调整过来的。
-
字段概要
从类继承的字段 org.hipparchus.stat.descriptive.StorelessUnivariateStatisticAbstractTest
smallSamples
从类继承的字段 org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
fourthMoment, geoMean, identicalWeightsArray, kurt, max, mean, median, min, percentile5, percentile95, product, secondMoment, skew, std, sum, sumLog, sumSq, testArray, testWeightsArray, thirdMoment, unitWeightsArray, var, weightedMean, weightedProduct, weightedStd, weightedSum, weightedVar
-
构造器概要
-
方法概要
修饰符和类型方法说明double
UnivariateStatisticAbstractTest中定义的testArray的预期值返回统计量的新实例void
void
void
void
test5()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
验证当通过复制原始统计量并在增加了少量元素后进行增量操作时,复制的统计量仍然等于原始统计量void
验证当通过在增加了大部分元素后进行复制时,复制的统计量仍然等于原始统计量void
测试各种分布void
大样本流式测试void
void
void
void
void
void
void
void
void
验证即使缓冲区大小较小,也没有顺序偏差void
void
从类继承的方法 org.hipparchus.stat.descriptive.StorelessUnivariateStatisticAbstractTest
checkClearValue, testAggregate, testConsistency, testConsume, testCopyConsistency, testEqualsAndHashCode, testEvaluateInternalState, testIncrementation, testMomentSmallSamples, testSerial, testSerialization
从类继承的方法 org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
getTolerance, testCopy, testCopyData, testEvaluateArraySegment, testEvaluateArraySegmentWeighted, testEvaluation, testWeightedConsistency
-
字段详细资料
-
tolerance
protected double tolerance
-
-
构造器详细资料
-
RandomPercentileTest
public RandomPercentileTest()
-
-
方法详细资料
-
getUnivariateStatistic
返回统计量的新实例 -
expectedValue
public double expectedValue()UnivariateStatisticAbstractTest中定义的testArray的预期值 -
testCopyConsistencyWithInitialMostElements
public void testCopyConsistencyWithInitialMostElements()验证当通过在增加了大部分元素后进行复制时,复制的统计量仍然等于原始统计量 -
testCopyConsistencyWithInitialFirstFewElements
public void testCopyConsistencyWithInitialFirstFewElements()验证当通过复制原始统计量并在增加了少量元素后进行增量操作时,复制的统计量仍然等于原始统计量 -
testPercentileSmallSample
public void testPercentileSmallSample() -
testNonPositiveEpsilon
public void testNonPositiveEpsilon() -
testNISTExample
public void testNISTExample() -
test5
public void test5() -
testSingleton
public void testSingleton() -
testSpecialValues
public void testSpecialValues() -
testAggregateSmallSamplesA
public void testAggregateSmallSamplesA() -
testAggregateSmallSamplesB
public void testAggregateSmallSamplesB() -
testAggregateSmallSamplesC
public void testAggregateSmallSamplesC() -
testBufferConsumeLevel0
- 抛出:
-
Exception
-
testBufferSampling
- 抛出:
-
Exception
-
testBufferMergeWith
- 抛出:
-
Exception
-
testBufferMergeInto
- 抛出:
-
Exception
-
testArrayExample
public void testArrayExample() -
testReduceSmallDataSet
public void testReduceSmallDataSet() -
testReduceLargeDataSet
public void testReduceLargeDataSet() -
testAccept
public void testAccept() -
testCannedDataSet
public void testCannedDataSet() -
test99Percentile
public void test99Percentile() -
test90Percentile
public void test90Percentile() -
test20Percentile
public void test20Percentile() -
test5Percentile
public void test5Percentile() -
test99PercentileHighValues
public void test99PercentileHighValues() -
test90PercentileHighValues
public void test90PercentileHighValues() -
test20PercentileHighValues
public void test20PercentileHighValues() -
test5PercentileHighValues
public void test5PercentileHighValues() -
test0PercentileValuesWithFewerThan5Values
public void test0PercentileValuesWithFewerThan5Values() -
testMaxValuesRetained
public void testMaxValuesRetained() -
testMaxValuesRetained0Epsilon
public void testMaxValuesRetained0Epsilon() -
testMaxValuesRetained1Epsilon
public void testMaxValuesRetained1Epsilon() -
testDistribution
public void testDistribution()测试各种分布 -
testDistributionStreaming
public void testDistributionStreaming()大样本流式测试 -
testSequentialData
public void testSequentialData()验证即使缓冲区大小较小,也没有顺序偏差
-