Class AccumulatorTest
- java.lang.Object
-
- org.djutils.stats.summarizers.quantileaccumulator.AccumulatorTest
-
public class AccumulatorTest extends Object
AccumulatorTest tests the quantile accumulators for the right exceptions.
Copyright (c) 2020-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Constructor Summary
Constructors Constructor Description AccumulatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAccumulators()Test the accumulators for null and wrong probabilities.voidtestFixedBinsAccumulator()Test the getCumulativeProbability method of the FixedBinsAccumulator.voidtestFullStorageAccumulator()Test the getCumulativeProbability method of the FullStorageAccumulator.voidtestNoStorageAccumulator()Test the getCumulativeProbability method of the NoStorageAccumulator.voidtestTDigestAccumulator()Test the getCumulativeProbability method of the TDigestAccumulator.
-
-
-
Method Detail
-
testAccumulators
public void testAccumulators()
Test the accumulators for null and wrong probabilities.
-
testFullStorageAccumulator
public void testFullStorageAccumulator()
Test the getCumulativeProbability method of the FullStorageAccumulator.
-
testFixedBinsAccumulator
public void testFixedBinsAccumulator()
Test the getCumulativeProbability method of the FixedBinsAccumulator. This test does not cover cases where some of the registered values are out of range; as we have not decided how to compute cumulative probabilities for such cases.
-
testNoStorageAccumulator
public void testNoStorageAccumulator()
Test the getCumulativeProbability method of the NoStorageAccumulator.
-
testTDigestAccumulator
public void testTDigestAccumulator()
Test the getCumulativeProbability method of the TDigestAccumulator.
-
-