Class LongStatsArrayAggregator
- java.lang.Object
-
- com.linkedin.alpini.base.statistics.AbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
- com.linkedin.alpini.base.statistics.LongQuantileEstimation
-
- com.linkedin.alpini.base.statistics.LongStatsAggregator
-
- com.linkedin.alpini.base.statistics.LongStatsArrayAggregator
-
- All Implemented Interfaces:
java.util.function.LongConsumer
public class LongStatsArrayAggregator extends LongStatsAggregator
Extend theLongQuantileEstimation
class and add computation for the mean and standard deviation of the supplied values. The statistics are summarised in aLongStats
object and the statistics are reset.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.linkedin.alpini.base.statistics.LongStatsAggregator
LongStatsAggregator.LongData
-
Nested classes/interfaces inherited from class com.linkedin.alpini.base.statistics.LongQuantileEstimation
LongQuantileEstimation.Sample
-
Nested classes/interfaces inherited from class com.linkedin.alpini.base.statistics.AbstractQuantileEstimation
AbstractQuantileEstimation.AbstractSample<SAMPLE extends AbstractQuantileEstimation.AbstractSample<SAMPLE>>, AbstractQuantileEstimation.Data, AbstractQuantileEstimation.Quantile, AbstractQuantileEstimation.Quantiles
-
-
Field Summary
-
Fields inherited from class com.linkedin.alpini.base.statistics.AbstractQuantileEstimation
_log
-
-
Constructor Summary
Constructors Constructor Description LongStatsArrayAggregator(double epsilon, int compactSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.SortedSet<LongQuantileEstimation.Sample>
cloneSortedSet(java.util.SortedSet<LongQuantileEstimation.Sample> samples)
protected LongQuantileEstimation.Sample
floor(java.util.SortedSet<LongQuantileEstimation.Sample> samples, LongQuantileEstimation.Sample v)
protected java.util.SortedSet<LongQuantileEstimation.Sample>
newSortedSet(java.util.Comparator<LongQuantileEstimation.Sample> comparator)
-
Methods inherited from class com.linkedin.alpini.base.statistics.LongStatsAggregator
getLongStats, newData
-
Methods inherited from class com.linkedin.alpini.base.statistics.LongQuantileEstimation
accept, compare, computeQuantile, query, query
-
Methods inherited from class com.linkedin.alpini.base.statistics.AbstractQuantileEstimation
accept, collector, computeQuantile, data, getCompactSize, getNumberOfSamples, queryAndReset, queryAndReset, querySample, reset
-
-
-
-
Method Detail
-
newSortedSet
protected java.util.SortedSet<LongQuantileEstimation.Sample> newSortedSet(java.util.Comparator<LongQuantileEstimation.Sample> comparator)
- Overrides:
newSortedSet
in classAbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
cloneSortedSet
protected java.util.SortedSet<LongQuantileEstimation.Sample> cloneSortedSet(java.util.SortedSet<LongQuantileEstimation.Sample> samples)
- Overrides:
cloneSortedSet
in classAbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
floor
protected LongQuantileEstimation.Sample floor(java.util.SortedSet<LongQuantileEstimation.Sample> samples, LongQuantileEstimation.Sample v)
- Overrides:
floor
in classAbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
-