public final class LongArrayStaticHistogram extends AbstractObjStaticHistogram<long[]>
long[]
). 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 |
---|
LongArrayStaticHistogram(int bins,
double min,
double max,
int cols)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
increment(double coord,
long[] data)
Increment histogram by a double[].
|
protected long[] |
makeObject()
Class to make a new object for the data store.
|
void |
putData(double coord,
long[] data)
Deprecated.
use the explicit
increment(double, long[]) 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 LongArrayStaticHistogram(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, long[] data)
coord
- Coordinatedata
- Data to increment by.@Deprecated public void putData(double coord, long[] data)
increment(double, long[])
instead.coord
- Coordinatedata
- Dataprotected long[] makeObject()
AbstractObjStaticHistogram
makeObject
in class AbstractObjStaticHistogram<long[]>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.