Class GenericQuantileEstimation<T>
- java.lang.Object
-
- com.linkedin.alpini.base.statistics.AbstractQuantileEstimation<GenericQuantileEstimation.Sample<T>>
-
- com.linkedin.alpini.base.statistics.GenericQuantileEstimation<T>
-
- All Implemented Interfaces:
java.util.function.Consumer<T>
public class GenericQuantileEstimation<T> extends AbstractQuantileEstimation<GenericQuantileEstimation.Sample<T>> implements java.util.function.Consumer<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
GenericQuantileEstimation.Sample<T>
-
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 GenericQuantileEstimation(double epsilon, int compactSize, java.util.Comparator<T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(T v)
protected int
compare(GenericQuantileEstimation.Sample<T> o1, GenericQuantileEstimation.Sample<T> o2)
AbstractQuantileEstimation.Quantile
computeQuantile(T v)
protected GenericQuantileEstimation.Sample<T>
newSample(T value)
T
query(double quantile)
-
Methods inherited from class com.linkedin.alpini.base.statistics.AbstractQuantileEstimation
accept, cloneSortedSet, collector, computeQuantile, data, floor, getCompactSize, getNumberOfSamples, newData, newSortedSet, queryAndReset, queryAndReset, querySample, reset
-
-
-
-
Constructor Detail
-
GenericQuantileEstimation
public GenericQuantileEstimation(double epsilon, int compactSize, java.util.Comparator<T> comparator)
-
-
Method Detail
-
compare
protected final int compare(GenericQuantileEstimation.Sample<T> o1, GenericQuantileEstimation.Sample<T> o2)
- Specified by:
compare
in classAbstractQuantileEstimation<GenericQuantileEstimation.Sample<T>>
-
computeQuantile
public AbstractQuantileEstimation.Quantile computeQuantile(@Nonnull T v)
-
query
public T query(double quantile)
-
newSample
protected GenericQuantileEstimation.Sample<T> newSample(T value)
-
-