Class EquiDepthHistogramBuilder
java.lang.Object
org.impulsegraph.storage.stats.EquiDepthHistogramBuilder
Builds an equi-depth histogram for numeric values using reservoir sampling.
-
Constructor Details
-
EquiDepthHistogramBuilder
public EquiDepthHistogramBuilder(int sampleSize)
-
-
Method Details
-
offerNull
public void offerNull() -
offer
public void offer(double value) -
offer
public void offer(long value) -
offer
public void offer(int value) -
getCount
public int getCount() -
getNullCount
public long getNullCount() -
getMin
public double getMin() -
getMax
public double getMax() -
buildBuckets
public double[] buildBuckets(int numBuckets)
-