@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class FastLongHistogram extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_NBINS
已过时。
Default number of bins.
|
static double[] |
DEFAULT_QUANTILES
已过时。
|
构造器和说明 |
---|
FastLongHistogram()
已过时。
Constructor.
|
FastLongHistogram(int numOfBins)
已过时。
Constructor.
|
FastLongHistogram(int numOfBins,
long min,
long max)
已过时。
Constructor setting the bins assuming a uniform distribution within a range.
|
限定符和类型 | 方法和说明 |
---|---|
void |
add(long value,
long count)
已过时。
Adds a value to the histogram.
|
long |
getCount()
已过时。
|
long |
getMax()
已过时。
|
long |
getMean()
已过时。
|
long |
getMin()
已过时。
|
long |
getNumAtOrBelow(long value)
已过时。
|
long[] |
getQuantiles()
已过时。
|
long[] |
getQuantiles(double[] quantiles)
已过时。
Computes the quantiles give the ratios.
|
FastLongHistogram |
reset()
已过时。
Resets the histogram for new counting.
|
public static final int DEFAULT_NBINS
public static final double[] DEFAULT_QUANTILES
public FastLongHistogram()
public FastLongHistogram(int numOfBins)
numOfBins
- the number of bins for the histogram. A larger value results in more precise
results but with lower efficiency, and vice versus.public FastLongHistogram(int numOfBins, long min, long max)
numOfBins
- the number of bins for the histogram. A larger value results in more precise
results but with lower efficiency, and vice versus.min
- lower bound of the region, inclusive.max
- higher bound of the region, inclusive.public void add(long value, long count)
public long[] getQuantiles(double[] quantiles)
public long[] getQuantiles()
public long getMin()
public long getMax()
public long getCount()
public long getMean()
public long getNumAtOrBelow(long value)
public FastLongHistogram reset()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.