类 StreamingStatisticsTest

java.lang.Object
org.hipparchus.stat.descriptive.StreamingStatisticsTest

public class StreamingStatisticsTest extends Object
StreamingStatistics类的测试用例。
  • 构造器详细资料

    • StreamingStatisticsTest

      public StreamingStatisticsTest()
  • 方法详细资料

    • createStreamingStatistics

      protected StreamingStatistics createStreamingStatistics()
    • testStats

      public void testStats()
      测试统计数据
    • testConsume

      public void testConsume()
    • testN0andN1Conditions

      public void testN0andN1Conditions()
    • testProductAndGeometricMean

      public void testProductAndGeometricMean()
    • testNaNContracts

      public void testNaNContracts()
    • testGetSummary

      public void testGetSummary()
    • testSerialization

      public void testSerialization()
    • testEqualsAndHashCode

      public void testEqualsAndHashCode()
    • testCopy

      public void testCopy()
    • testQuadraticMean

      public void testQuadraticMean()
    • testToString

      public void testToString()
    • testAggregationConsistency

      public void testAggregationConsistency()
      验证对分区进行聚合与直接计算得到相同结果。1) 随机生成一个包含10-100个值的数据集,取值范围为[-100, 100] 2) 将数据集分成2-5个分区 3) 为每个分区创建一个AggregateSummaryStatistic和ContributingStatistics 4) 将AggregateSummaryStatistic的结果与由提供完整数据集的单个SummaryStatistics实例返回的值进行比较。
    • testAggregateDegenerate

      public void testAggregateDegenerate()
    • testAggregateSpecialValues

      public void testAggregateSpecialValues()
    • testBuilderDefault

      public void testBuilderDefault()
    • testBuilderPercentilesOn

      public void testBuilderPercentilesOn()
    • testBuilderMomentsOff

      public void testBuilderMomentsOff()
    • testBuilderSumOfLogsOff

      public void testBuilderSumOfLogsOff()
    • testBuilderExtremaOff

      public void testBuilderExtremaOff()
    • testBuilderSumOfSquares

      public void testBuilderSumOfSquares()
    • assertSummaryStatisticsEquals

      protected static void assertSummaryStatisticsEquals(StreamingStatistics expected, StreamingStatistics observed, double delta)
      验证了StatisticalSummary和StatisticalSummaryValues在delta范围内相等,NaN和无穷大在相同位置返回。对于最大值、最小值、n值,必须完全一致,delta仅用于总和、均值、方差、标准差。