类 PercentileTest
java.lang.Object
org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
org.hipparchus.stat.descriptive.rank.PercentileTest
Percentile
类的测试用例。
-
字段概要
从类继承的字段 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, tolerance, unitWeightsArray, var, weightedMean, weightedProduct, weightedStd, weightedSum, weightedVar
-
构造器概要
-
方法概要
修饰符和类型方法说明void
double
void
setup()
用于确保保留默认值的方法void
test5()
void
void
void
void
void
void
void
void
void
void
void
在testHighPercentile()
中仅检查现有实现;此方法验证所有类型,包括Percentile.Type.CM Percentile.Type。void
void
void
void
void
void
void
void
void
void
protected void
testAssertMappedValues
(double[] data, Object[][] map, Double p, Double tolerance) 简单的测试断言实用程序方法,假设每个type
特定的default
nan处理策略protected void
testAssertMappedValues
(double[] data, Object[][] map, Double p, Double tolerance, NaNStrategy nanStrategy) 简单的测试断言实用程序方法void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
从类继承的方法 org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
getTolerance, testCopy, testCopyData, testEvaluateArraySegment, testEvaluateArraySegmentWeighted, testEvaluation, testWeightedConsistency
-
字段详细资料
-
DEFAULT_PERCENTILE
protected final double DEFAULT_PERCENTILE用于getUnivariateStatistic()
的默认百分位数- 另请参阅:
-
-
构造器详细资料
-
PercentileTest
public PercentileTest()
-
-
方法详细资料
-
setup
public void setup()用于确保保留默认值的方法 -
getUnivariateStatistic
-
expectedValue
public double expectedValue() -
testHighPercentile
public void testHighPercentile() -
testLowPercentile
public void testLowPercentile() -
testPercentile
public void testPercentile() -
testNISTExample
public void testNISTExample() -
test5
public void test5() -
testNullEmpty
public void testNullEmpty() -
testSingleton
public void testSingleton() -
testSpecialValues
public void testSpecialValues() -
testSetQuantile
public void testSetQuantile() -
testAllTechniquesHighPercentile
public void testAllTechniquesHighPercentile()在testHighPercentile()
中仅检查现有实现;此方法验证所有类型,包括Percentile.Type.CM Percentile.Type。 -
testAllTechniquesLowPercentile
public void testAllTechniquesLowPercentile() -
checkAllTechniquesPercentile
public void checkAllTechniquesPercentile() -
testAllTechniquesPercentileUsingMedianOf3Pivoting
public void testAllTechniquesPercentileUsingMedianOf3Pivoting() -
testAllTechniquesPercentileUsingCentralPivoting
public void testAllTechniquesPercentileUsingCentralPivoting() -
testAllTechniquesNISTExample
public void testAllTechniquesNISTExample() -
testAllTechniques5
public void testAllTechniques5() -
testAllTechniquesNullEmpty
public void testAllTechniquesNullEmpty() -
testAllTechniquesSingleton
public void testAllTechniquesSingleton() -
testAllTechniquesEmpty
public void testAllTechniquesEmpty() -
testReplaceNanInRange
public void testReplaceNanInRange() -
testRemoveNan
public void testRemoveNan() -
testPercentileCopy
public void testPercentileCopy() -
testAllTechniquesSpecialValues
public void testAllTechniquesSpecialValues() -
testAllTechniquesSetQuantile
public void testAllTechniquesSetQuantile() -
testAllTechniquesEvaluateArraySegmentWeighted
public void testAllTechniquesEvaluateArraySegmentWeighted() -
testAllTechniquesEvaluateArraySegment
public void testAllTechniquesEvaluateArraySegment() -
testAllTechniquesWeightedConsistency
public void testAllTechniquesWeightedConsistency() -
testAllTechniquesEvaluation
public void testAllTechniquesEvaluation() -
testPercentileWithTechnique
public void testPercentileWithTechnique() -
testStoredVsDirect
public void testStoredVsDirect() -
testPercentileWithDataRef
public void testPercentileWithDataRef() -
testNullEstimation
public void testNullEstimation() -
testAllEstimationTechniquesOnlyLimits
public void testAllEstimationTechniquesOnlyLimits() -
testAllEstimationTechniquesOnly
public void testAllEstimationTechniquesOnly() -
testAllEstimationTechniquesOnlyForAllPivotingStrategies
public void testAllEstimationTechniquesOnlyForAllPivotingStrategies() -
testAllEstimationTechniquesOnlyForExtremeIndexes
public void testAllEstimationTechniquesOnlyForExtremeIndexes() -
testAllEstimationTechniquesOnlyForNullsAndOOR
public void testAllEstimationTechniquesOnlyForNullsAndOOR() -
testAssertMappedValues
简单的测试断言实用程序方法,假设每个type
特定的default
nan处理策略- 参数:
-
data
- 输入数据 -
map
- 预期结果与Percentile.EstimationType
的映射 -
p
- 要计算的分位数 -
tolerance
- 允许的差异容差
-
testNanStrategySpecific
public void testNanStrategySpecific() -
testNanStrategyFailed
public void testNanStrategyFailed() -
testAllTechniquesSpecialValuesWithNaNStrategy
public void testAllTechniquesSpecialValuesWithNaNStrategy() -
testAssertMappedValues
protected void testAssertMappedValues(double[] data, Object[][] map, Double p, Double tolerance, NaNStrategy nanStrategy) 简单的测试断言实用程序方法- 参数:
-
data
- 输入数据 -
map
- 预期结果与Percentile.EstimationType
的映射 -
p
- 要计算的分位数 -
tolerance
- 允许的差异容差 -
nanStrategy
- 要传递的NaNStrategy
-