Package org.djutils.stats.summarizers
Class TallyTest
- java.lang.Object
- 
- org.djutils.stats.summarizers.TallyTest
 
- 
 public class TallyTest extends Object The TallyTest test the tally.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://simulation.tudelft.nl/dsol/3.0/license.html. - Author:
- Peter Jacobs , Peter Knoppers
 
- 
- 
Constructor SummaryConstructors Constructor Description TallyTest()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) doublegenerateGaussianNoise(double mu, double sigma, Random random)Generate normally distributed values.voidtestFullStorageAccumulator()Test the FullStorageAccumulator.voidtestKurtWikipedia()Test the kurtosis example from https://en.wikipedia.org/wiki/Kurtosis where we assumed that the example for sample kurtosis actually calculates population kurtosis (!).voidtestNoStorageAccumulator()Test Tally with the NoStorageAccumulator.voidtestSkewKurtExcel()Test skewness and kurtosis based on two Excel samples.voidtestSkewnessAndKurtosis()Test skewness and kurtosis.voidtestTally()Test the tally.voidtestTDigestAccumulator()Test the T-Digest accumulator.
 
- 
- 
- 
Method Detail- 
testTallypublic void testTally() Test the tally.
 - 
testKurtWikipediapublic void testKurtWikipedia() Test the kurtosis example from https://en.wikipedia.org/wiki/Kurtosis where we assumed that the example for sample kurtosis actually calculates population kurtosis (!).
 - 
testSkewKurtExcelpublic void testSkewKurtExcel() Test skewness and kurtosis based on two Excel samples.
 - 
testNoStorageAccumulatorpublic void testNoStorageAccumulator() Test Tally with the NoStorageAccumulator.
 - 
testFullStorageAccumulatorpublic void testFullStorageAccumulator() Test the FullStorageAccumulator.
 - 
generateGaussianNoisedouble generateGaussianNoise(double mu, double sigma, Random random)Generate normally distributed values. Derived from https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform- Parameters:
- mu- double; mean
- sigma- double; standard deviation
- random- Random; entropy source
- Returns:
- double; one pseudo random value
 
 - 
testTDigestAccumulatorpublic void testTDigestAccumulator() Test the T-Digest accumulator.
 - 
testSkewnessAndKurtosispublic void testSkewnessAndKurtosis() Test skewness and kurtosis. Test data from http://web.ipac.caltech.edu/staff/fmasci/home/astro_refs/SkewStatSignif.pdf
 
- 
 
-