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 TypeMethodDescriptionvoid
int
getActiveDensity
(int index) getActiveRowAtBin
(int j, int index) int
getBin
(double value) double
getBinEndValue
(int bin) double
getBinStartValue
(int bin) int
getDensity
(int index) int
int
double
double
int
int
int
toString()
-
Constructor Details
-
FixedBinsHistogram
-
-
Method Details
-
addValue
-
getActiveDensity
public int getActiveDensity(int index) - Specified by:
getActiveDensity
in interfaceHistogram<R>
-
getActiveRowAtBin
- Specified by:
getActiveRowAtBin
in interfaceHistogram<R>
-
getDensity
public int getDensity(int index) - Specified by:
getDensity
in interfaceHistogram<R>
-
getNumberOfBins
public int getNumberOfBins()- Specified by:
getNumberOfBins
in interfaceHistogram<R>
-
getMinValue
public double getMinValue()- Specified by:
getMinValue
in interfaceHistogram<R>
-
getMaxValue
public double getMaxValue()- Specified by:
getMaxValue
in interfaceHistogram<R>
-
getBinStartValue
public double getBinStartValue(int bin) - Specified by:
getBinStartValue
in interfaceHistogram<R>
-
getBinEndValue
public double getBinEndValue(int bin) - Specified by:
getBinEndValue
in interfaceHistogram<R>
-
getMaxActiveDensity
public int getMaxActiveDensity()- Specified by:
getMaxActiveDensity
in interfaceHistogram<R>
-
getMaxDensity
public int getMaxDensity()- Specified by:
getMaxDensity
in interfaceHistogram<R>
-
getUnderflowBin
public int getUnderflowBin() -
getOverflowBin
public int getOverflowBin() -
getBin
public int getBin(double value) -
toString
-