Class LongQuantileEstimation
- java.lang.Object
-
- com.linkedin.alpini.base.statistics.AbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
- com.linkedin.alpini.base.statistics.LongQuantileEstimation
-
- All Implemented Interfaces:
java.util.function.LongConsumer
- Direct Known Subclasses:
LongQuantileArrayEstimation
,LongStatsAggregator
public class LongQuantileEstimation extends AbstractQuantileEstimation<LongQuantileEstimation.Sample> implements java.util.function.LongConsumer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
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 LongQuantileEstimation(double epsilon, int compactSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(long v)
protected int
compare(LongQuantileEstimation.Sample o1, LongQuantileEstimation.Sample o2)
AbstractQuantileEstimation.Quantile
computeQuantile(long v)
java.lang.Long
query(double quantile)
long[]
query(AbstractQuantileEstimation.Quantiles quantiles)
-
Methods inherited from class com.linkedin.alpini.base.statistics.AbstractQuantileEstimation
accept, cloneSortedSet, collector, computeQuantile, data, floor, getCompactSize, getNumberOfSamples, newData, newSortedSet, queryAndReset, queryAndReset, querySample, reset
-
-
-
-
Method Detail
-
compare
protected final int compare(LongQuantileEstimation.Sample o1, LongQuantileEstimation.Sample o2)
- Specified by:
compare
in classAbstractQuantileEstimation<LongQuantileEstimation.Sample>
-
computeQuantile
public AbstractQuantileEstimation.Quantile computeQuantile(long v)
-
query
public final java.lang.Long query(double quantile)
-
query
public final long[] query(@Nonnull AbstractQuantileEstimation.Quantiles quantiles)
-
accept
public void accept(long v)
- Specified by:
accept
in interfacejava.util.function.LongConsumer
-
-