public class LogHistogram extends Histogram
| Constructor and Description |
|---|
LogHistogram(double min,
double max) |
LogHistogram(double min,
double max,
double epsilonFactor) |
| Modifier and Type | Method and Description |
|---|---|
static double |
approxLog2(double value)
Approximates log_2(value) by abusing floating point hardware.
|
protected int |
bucketIndex(double x) |
static double |
pow2(double x)
Computes an approximate value of 2^x.
|
public LogHistogram(double min,
double max)
public LogHistogram(double min,
double max,
double epsilonFactor)
public static double approxLog2(double value)
value - The argument of the logpublic static double pow2(double x)
x - The power of 2 desired.protected int bucketIndex(double x)
bucketIndex in class HistogramCopyright © 2021. All rights reserved.