Interface Histogram
-
- All Known Implementing Classes:
AbstractObjDynamicHistogram,AbstractStaticHistogram,DoubleDynamicHistogram,DoubleHistogram,ObjHistogram
public interface HistogramAbstract API for histograms. Without specific type information, to allow this to be shared for primitive types, too!- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHistogram.IterArray iterator.
-
Field Summary
Fields Modifier and Type Field Description static intCACHE_SHIFTThis parameter controls the cache size used for dynamic histograms before setting the initial thresholds.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetBinsize()Get the size (width) of a bin.doublegetCoverMaximum()Get maximum (covered by bins, not data!)doublegetCoverMinimum()Get minimum (covered by bins, not data!)intgetNumBins()Get the number of bins actually in use.Histogram.Iteriter()Get an iterator over all histogram bins.
-
-
-
Field Detail
-
CACHE_SHIFT
static final int CACHE_SHIFT
This parameter controls the cache size used for dynamic histograms before setting the initial thresholds.- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumBins
int getNumBins()
Get the number of bins actually in use.- Returns:
- number of bins
-
getBinsize
double getBinsize()
Get the size (width) of a bin.- Returns:
- bin size
-
getCoverMinimum
double getCoverMinimum()
Get minimum (covered by bins, not data!)- Returns:
- minimum
-
getCoverMaximum
double getCoverMaximum()
Get maximum (covered by bins, not data!)- Returns:
- maximum
-
iter
Histogram.Iter iter()
Get an iterator over all histogram bins.- Returns:
- Iterator
-
-