Class LongStatistics
- java.lang.Object
-
- org.ow2.clif.analyze.statistics.util.data.StatOnLongs
-
- org.ow2.clif.analyze.statistics.util.data.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
-
-
Field Summary
-
Fields inherited from class org.ow2.clif.analyze.statistics.util.data.StatOnLongs
DEFAULT_FACTOR, DEFAULT_PERCENT_MIN, logger, MIN_SIZE_OF_STATISTICAL_DATA
-
-
Constructor Summary
Constructors Constructor Description LongStatistics()longStat empty constructorLongStatistics(int initialCapacity)Constructs a LongStatistics with an empty list of long contructed with the specified initial capacity.LongStatistics(ListOfLong lol)longStat constructor based on existing ListOfLong.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoutputFirstTenthReckoning(java.lang.String label, boolean verbose)prints the first tenth reckoning on the standard output stream.voidoutputRawDataFrequency(int number)prints the list which contains the data distribution in 'number' buckets.voidoutputRawDataQuantiles(int number)prints list which contains the raw data distribution in 'number' quantiles (buckets that contain the same number of values).voidoutputResultsOfRawDataSlicing(int number)Prints the medians of 'number' slices of raw data (increased-value sort).voidoutputStatisticalSortDataFrequency(int number)prints the list which contains the data distribution in 'number' buckets.voidoutputStatisticalSortDataQuantiles(int number)prints the list which contains the data distribution in 'number' quantiles (buckets that contain the same number of values).voidoutputStatisticalSummary(java.lang.String label, boolean verbose)print the statistical summary of data on the standard output stream.voidoutputStatistics(java.lang.String label, boolean verbose)print the data analyze by enhanced statistics, including median result, on the standard output stream.java.util.List<Bucket>rawDataFrequency(int number)determines the distribution of raw data, as the number of values in 'number' buckets.java.util.List<Quantile>rawDataQuantiles(int number)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).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.-
Methods inherited from class org.ow2.clif.analyze.statistics.util.data.StatOnLongs
addAll, addAll, addLong, getData, getLongAt, getMax, getMaxStatSortIndex, getMaxStatSortValue, getMean, getMedian, getMedian, getMin, getMinStatSortIndex, getMinStatSortValue, getNumberOfValues, getSortedData, getSortedValue, getStatisticalSortFactor, getStatisticalSortPercentage, getStatSortDataNumber, getStatSortMean, getStatSortMedian, getStatSortStd, getStd, keptRate, outputData, outputData, outputSortedData, outputSortedData, removeLongAt, reset, setLogger, setStatisticalSortFactor, setStatisticalSortPercentage, size, subMax, subMean, subMean, subMedian, subMin
-
-
-
-
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 statisticverbose- 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 statisticverbose- 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 statisticverbose- 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.
-
-