public final class DoubleArrayStaticHistogram extends AbstractObjStaticHistogram<double[]>
double[]
). This is
actually one of the simpler specializations, as arrays are objects not
primitive in Java.AbstractObjStaticHistogram.Iter
Modifier and Type | Field and Description |
---|---|
private int |
cols
Desired number of columns in each bin.
|
data, special
base, binsize, max, offset, size
CACHE_SHIFT
Constructor and Description |
---|
DoubleArrayStaticHistogram(int bins,
double min,
double max,
int cols)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
increment(double coord,
double[] data)
Increment histogram by a double[].
|
protected double[] |
makeObject()
Class to make a new object for the data store.
|
void |
putData(double coord,
double[] data)
Deprecated.
use the explicit
increment(double, double[]) instead. |
get, getSpecial, iter
getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getNumBins, growSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBinsize, getCoverMaximum, getCoverMinimum, getNumBins
public DoubleArrayStaticHistogram(int bins, double min, double max, int cols)
bins
- Number of binsmin
- Minimum value for the coordinatesmax
- Maximum value for the coordinatescols
- Number of columns in each bin.public void increment(double coord, double[] data)
coord
- Coordinatedata
- Data to increment by.@Deprecated public void putData(double coord, double[] data)
increment(double, double[])
instead.coord
- Coordinatedata
- Dataprotected double[] makeObject()
AbstractObjStaticHistogram
makeObject
in class AbstractObjStaticHistogram<double[]>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.