
public class ShortStaticHistogram extends AbstractStaticHistogram implements ShortHistogram
| Modifier and Type | Class and Description |
|---|---|
class |
ShortStaticHistogram.Iter
Iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) short[] |
data
Data store
|
base, binsize, max, offset, sizeCACHE_SHIFT| Constructor and Description |
|---|
ShortStaticHistogram(int bins,
double min,
double max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
short |
get(double coord)
Get the value at a particular position.
|
void |
increment(double coord,
short val)
Increment the value of a bin.
|
ShortStaticHistogram.Iter |
iter()
Get an iterator over all histogram bins.
|
getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getNumBins, growSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBinsize, getCoverMaximum, getCoverMinimum, getNumBinspublic ShortStaticHistogram(int bins,
double min,
double max)
bins - Number of binsmin - Cover minimummax - Cover maximumpublic void increment(double coord,
short val)
increment in interface ShortHistogramcoord - Coordinateval - Valuepublic short get(double coord)
coord - Coordinatepublic ShortStaticHistogram.Iter iter()
AbstractStaticHistogramiter in interface Histogramiter in interface ShortHistogramiter in class AbstractStaticHistogram