Class TallyTest

    • Constructor Detail

      • TallyTest

        public TallyTest()
    • Method Detail

      • testTally

        public void testTally()
        Test the tally.
      • testKurtWikipedia

        public 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 (!).
      • testSkewKurtExcel

        public void testSkewKurtExcel()
        Test skewness and kurtosis based on two Excel samples.
      • testNoStorageAccumulator

        public void testNoStorageAccumulator()
        Test Tally with the NoStorageAccumulator.
      • testFullStorageAccumulator

        public void testFullStorageAccumulator()
        Test the FullStorageAccumulator.
      • generateGaussianNoise

        double 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
      • testTDigestAccumulator

        public void testTDigestAccumulator()
        Test the T-Digest accumulator.
      • testSkewnessAndKurtosis

        public void testSkewnessAndKurtosis()
        Test skewness and kurtosis. Test data from http://web.ipac.caltech.edu/staff/fmasci/home/astro_refs/SkewStatSignif.pdf