public class DoubleHistogram extends AbstractStaticHistogram
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleHistogram.Iter
Iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) double[] |
data
Data store
|
base, binsize, max, offset, sizeCACHE_SHIFT| Constructor and Description |
|---|
DoubleHistogram(int bins,
double min,
double max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get(double coord)
Get the value at a particular position.
|
void |
increment(double coord,
double val)
Increment the value of a bin.
|
DoubleHistogram.Iter |
iter()
Get an iterator over all histogram bins.
|
getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getNumBins, growSizepublic DoubleHistogram(int bins,
double min,
double max)
bins - Number of binsmin - Cover minimummax - Cover maximumpublic void increment(double coord,
double val)
coord - Coordinateval - Valuepublic double get(double coord)
coord - Coordinatepublic DoubleHistogram.Iter iter()
AbstractStaticHistogramiter in interface Histogramiter in class AbstractStaticHistogramCopyright © 2019 ELKI Development Team. License information.