Class DoubleQuantileEstimation
- java.lang.Object
-
- com.linkedin.alpini.base.statistics.AbstractQuantileEstimation<DoubleQuantileEstimation.Sample>
-
- com.linkedin.alpini.base.statistics.DoubleQuantileEstimation
-
- All Implemented Interfaces:
java.util.function.DoubleConsumer
public class DoubleQuantileEstimation extends AbstractQuantileEstimation<DoubleQuantileEstimation.Sample> implements java.util.function.DoubleConsumer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DoubleQuantileEstimation.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 DoubleQuantileEstimation(double epsilon, int compactSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(double v)
protected int
compare(DoubleQuantileEstimation.Sample o1, DoubleQuantileEstimation.Sample o2)
AbstractQuantileEstimation.Quantile
computeQuantile(double v)
double
query(double quantile)
double[]
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 int compare(DoubleQuantileEstimation.Sample o1, DoubleQuantileEstimation.Sample o2)
- Specified by:
compare
in classAbstractQuantileEstimation<DoubleQuantileEstimation.Sample>
-
computeQuantile
public AbstractQuantileEstimation.Quantile computeQuantile(double v)
-
query
public double query(double quantile)
-
query
public final double[] query(@Nonnull AbstractQuantileEstimation.Quantiles quantiles)
-
accept
public void accept(double v)
- Specified by:
accept
in interfacejava.util.function.DoubleConsumer
-
-