Class FixedBinsHistogram<R>
java.lang.Object
com.macrofocus.high_d.distributions.FixedBinsHistogram<R>
- All Implemented Interfaces:
Histogram<R>
A class that models a standard histogram. A histogram consists of a number of equally sized and contiguous bins that
cover a certain interval. Values that are added to the histogram are classified into their corresponding bin, which
means that the count of the bin is incremented. Values that fall outside the interval, are classified into the
underflow resp. overflow bins.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetActiveDensity(int index) getActiveRowAtBin(int j, int index) intgetBin(double value) doublegetBinEndValue(int bin) doublegetBinStartValue(int bin) intgetDensity(int index) intintdoubledoubleintintinttoString()
-
Constructor Details
-
FixedBinsHistogram
-
-
Method Details
-
addValue
-
getActiveDensity
public int getActiveDensity(int index) - Specified by:
getActiveDensityin interfaceHistogram<R>
-
getActiveRowAtBin
- Specified by:
getActiveRowAtBinin interfaceHistogram<R>
-
getDensity
public int getDensity(int index) - Specified by:
getDensityin interfaceHistogram<R>
-
getNumberOfBins
public int getNumberOfBins()- Specified by:
getNumberOfBinsin interfaceHistogram<R>
-
getMinValue
public double getMinValue()- Specified by:
getMinValuein interfaceHistogram<R>
-
getMaxValue
public double getMaxValue()- Specified by:
getMaxValuein interfaceHistogram<R>
-
getBinStartValue
public double getBinStartValue(int bin) - Specified by:
getBinStartValuein interfaceHistogram<R>
-
getBinEndValue
public double getBinEndValue(int bin) - Specified by:
getBinEndValuein interfaceHistogram<R>
-
getMaxActiveDensity
public int getMaxActiveDensity()- Specified by:
getMaxActiveDensityin interfaceHistogram<R>
-
getMaxDensity
public int getMaxDensity()- Specified by:
getMaxDensityin interfaceHistogram<R>
-
getUnderflowBin
public int getUnderflowBin() -
getOverflowBin
public int getOverflowBin() -
getBin
public int getBin(double value) -
toString
-