类 PercentileTest

java.lang.Object
org.hipparchus.stat.descriptive.UnivariateStatisticAbstractTest
org.hipparchus.stat.descriptive.rank.PercentileTest

public class PercentileTest extends UnivariateStatisticAbstractTest
Percentile类的测试用例。
  • 字段详细资料

  • 构造器详细资料

    • PercentileTest

      public PercentileTest()
  • 方法详细资料

    • setup

      public void setup()
      用于确保保留默认值的方法
    • getUnivariateStatistic

      public Percentile getUnivariateStatistic()
      指定者:
      getUnivariateStatistic 在类中 UnivariateStatisticAbstractTest
    • expectedValue

      public double expectedValue()
      指定者:
      expectedValue 在类中 UnivariateStatisticAbstractTest
    • 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

      protected void testAssertMappedValues(double[] data, Object[][] map, Double p, Double tolerance)
      简单的测试断言实用程序方法,假设每个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