public class FloatStaticHistogram extends AbstractStaticHistogram implements FloatHistogram
Modifier and Type | Class and Description |
---|---|
class |
FloatStaticHistogram.Iter
Iterator class.
|
Modifier and Type | Field and Description |
---|---|
(package private) float[] |
data
Data store
|
base, binsize, max, offset, size
CACHE_SHIFT
Constructor and Description |
---|
FloatStaticHistogram(int bins,
double min,
double max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
get(double coord)
Get the value at a particular position.
|
void |
increment(double coord,
float val)
Increment the value of a bin.
|
FloatStaticHistogram.Iter |
iter()
Get an iterator over all histogram bins.
|
getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getNumBins, growSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBinsize, getCoverMaximum, getCoverMinimum, getNumBins
public FloatStaticHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Cover minimummax
- Cover maximumpublic void increment(double coord, float val)
increment
in interface FloatHistogram
coord
- Coordinateval
- Valuepublic float get(double coord)
coord
- Coordinatepublic FloatStaticHistogram.Iter iter()
AbstractStaticHistogram
iter
in interface FloatHistogram
iter
in interface Histogram
iter
in class AbstractStaticHistogram
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.