Class LongStatistics


  • public class LongStatistics
    extends StatOnLongs
    Class for performances statistical calculation (data stored in ListOfLong) with median, average value, standard deviation ... more specifically tuned to time measures
    Author:
    Guy Vachet
    • Constructor Detail

      • LongStatistics

        public LongStatistics()
        longStat empty constructor
      • LongStatistics

        public LongStatistics​(int initialCapacity)
        Constructs a LongStatistics with an empty list of long contructed with the specified initial capacity.
        Parameters:
        initialCapacity -
      • LongStatistics

        public LongStatistics​(ListOfLong lol)
        longStat constructor based on existing ListOfLong.
        Parameters:
        lol - the ListOfLong as initial value.
    • Method Detail

      • outputStatisticalSummary

        public void outputStatisticalSummary​(java.lang.String label,
                                             boolean verbose)
        print the statistical summary of data on the standard output stream.
        Parameters:
        label - of the statistic
        verbose - mode
      • outputStatistics

        public void outputStatistics​(java.lang.String label,
                                     boolean verbose)
        print the data analyze by enhanced statistics, including median result, on the standard output stream.
        Parameters:
        label - of the statistic
        verbose - mode
      • outputFirstTenthReckoning

        public void outputFirstTenthReckoning​(java.lang.String label,
                                              boolean verbose)
        prints the first tenth reckoning on the standard output stream.
        Parameters:
        label - of the statistic
        verbose - mode
      • rawDataFrequency

        public java.util.List<Bucket> rawDataFrequency​(int number)
        determines the distribution of raw data, as the number of values in 'number' buckets.
        Parameters:
        number - the number of groups in which data is distributed.
        Returns:
        the list of Bucket objects that represent the minimal threshold (included) and the maximal threshold (excluded) and the number of values in each bucket.
        See Also:
        Bucket
      • outputRawDataFrequency

        public void outputRawDataFrequency​(int number)
        prints the list which contains the data distribution in 'number' buckets. The raw data is used. The format is :


        ...

        Parameters:
        number - the number of groups in which data is distributed.
      • statisticalSortDataFrequency

        public java.util.List<Bucket> statisticalSortDataFrequency​(int number)
        determines the distribution of data after statistical rejection, as the number of values in 'number' buckets ; the data is used within the statistical range (rejection based on mean +/- factor x std).
        Parameters:
        number - the number of groups in which data is distributed.
        Returns:
        the list of Bucket objects that represent the minimal threshold (included) and the maximal threshold (excluded) and the number of values in each bucket.
        See Also:
        Bucket
      • outputStatisticalSortDataFrequency

        public void outputStatisticalSortDataFrequency​(int number)
        prints the list which contains the data distribution in 'number' buckets. The statistical consistant data is used. The format is :


        ...

        Parameters:
        number - the number of groups in which data is distributed.
      • rawDataQuantiles

        public java.util.List<Quantile> rawDataQuantiles​(int number)
      • outputRawDataQuantiles

        public void outputRawDataQuantiles​(int number)
        prints list which contains the raw data distribution in 'number' quantiles (buckets that contain the same number of values).
        Parameters:
        number - the number of groups in which raw data is distributed.
      • statisticalSortDataQuantiles

        public java.util.List<Quantile> statisticalSortDataQuantiles​(int number)
        determines the list of 'number' buckets (= quantile because contains the same number of values) that divide data after statistical rejection.
        Parameters:
        number - the number of groups in which data is distributed.
        Returns:
        the list of Quantiles that divide data as set of min (included) and max (excluded) thresholds. All buckets have the same size.
        See Also:
        Quantile
      • outputStatisticalSortDataQuantiles

        public void outputStatisticalSortDataQuantiles​(int number)
        prints the list which contains the data distribution in 'number' quantiles (buckets that contain the same number of values). The statistical sort data (rejection based on mean +/- factor x std).
        Parameters:
        number - the number of groups in which data is distributed.
      • outputResultsOfRawDataSlicing

        public void outputResultsOfRawDataSlicing​(int number)
        Prints the medians of 'number' slices of raw data (increased-value sort).
        Parameters:
        number - the number of groups in which data is sliced up.