类 RandomPercentileTest


public class RandomPercentileTest extends StorelessUnivariateStatisticAbstractTest
RandomPercentileTest类的测试用例。一些测试是从PSquarePercentileTest中调整过来的。
  • 字段详细资料

    • tolerance

      protected double tolerance
  • 构造器详细资料

    • RandomPercentileTest

      public RandomPercentileTest()
  • 方法详细资料

    • getUnivariateStatistic

      public RandomPercentile getUnivariateStatistic()
      返回统计量的新实例
      指定者:
      getUnivariateStatistic 在类中 StorelessUnivariateStatisticAbstractTest
    • expectedValue

      public double expectedValue()
      UnivariateStatisticAbstractTest中定义的testArray的预期值
      指定者:
      expectedValue 在类中 StorelessUnivariateStatisticAbstractTest
    • 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

      public void testBufferConsumeLevel0() throws Exception
      抛出:
      Exception
    • testBufferSampling

      public void testBufferSampling() throws Exception
      抛出:
      Exception
    • testBufferMergeWith

      public void testBufferMergeWith() throws Exception
      抛出:
      Exception
    • testBufferMergeInto

      public void testBufferMergeInto() throws Exception
      抛出:
      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()
      验证即使缓冲区大小较小,也没有顺序偏差