T
- Data typepublic abstract class AbstractObjStaticHistogram<T> extends AbstractStaticHistogram implements ObjHistogram<T>
Modifier and Type | Class and Description |
---|---|
class |
AbstractObjStaticHistogram.Iter
Iterator class.
|
Modifier and Type | Field and Description |
---|---|
(package private) Object[] |
data
Data store
|
base, binsize, max, offset, size
CACHE_SHIFT
Constructor and Description |
---|
AbstractObjStaticHistogram(int bins,
double min,
double max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
get(double coord)
Access the value of a bin with new data.
|
AbstractObjStaticHistogram.Iter |
iter()
Get an iterator over all histogram bins.
|
protected abstract T |
makeObject()
Class to make a new object for the data store.
|
getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getNumBins, growSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
putData
getBinsize, getCoverMaximum, getCoverMinimum, getNumBins
Object[] data
public AbstractObjStaticHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Cover minimummax
- Cover maximumpublic T get(double coord)
coord
- Coordinateprotected abstract T makeObject()
public AbstractObjStaticHistogram.Iter iter()
AbstractStaticHistogram
iter
in interface Histogram
iter
in interface ObjHistogram<T>
iter
in class AbstractStaticHistogram