
public class DoubleStaticHistogram extends AbstractStaticHistogram implements DoubleHistogram
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleStaticHistogram.Iter
Iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) double[] |
data
Data store
|
base, binsize, max, offset, sizeCACHE_SHIFT| Constructor and Description |
|---|
DoubleStaticHistogram(int bins,
double min,
double max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get(double coord)
Get the value at a particular position.
|
void |
increment(double coord,
double val)
Increment the value of a bin.
|
DoubleStaticHistogram.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 DoubleStaticHistogram(int bins,
double min,
double max)
bins - Number of binsmin - Cover minimummax - Cover maximumpublic void increment(double coord,
double val)
increment in interface DoubleHistogramcoord - Coordinateval - Valuepublic double get(double coord)
coord - Coordinatepublic DoubleStaticHistogram.Iter iter()
AbstractStaticHistogramiter in interface DoubleHistogramiter in interface Histogramiter in class AbstractStaticHistogram