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
|
(package private) Object[] |
special
Special value storage: infinity, NaN
|
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.
|
protected T |
getSpecial(int idx)
Ensure that we have storage for special values (infinity, NaN)
|
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
Object[] special
public AbstractObjStaticHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Cover minimummax
- Cover maximumpublic T get(double coord)
coord
- Coordinateprotected T getSpecial(int idx)
idx
- Index to return.protected abstract T makeObject()
public AbstractObjStaticHistogram.Iter iter()
AbstractStaticHistogram
iter
in interface Histogram
iter
in interface ObjHistogram<T>
iter
in class AbstractStaticHistogram