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, size
CACHE_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, growSize
public 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()
AbstractStaticHistogram
iter
in interface Histogram
iter
in class AbstractStaticHistogram
Copyright © 2019 ELKI Development Team. License information.