public class HistogramBin
extends java.lang.Object
Constructor and Description |
---|
HistogramBin(double binMinValue,
double binMaxValue,
ProductAttributePerceptionHistogram correspondingHistogram) |
Modifier and Type | Method and Description |
---|---|
void |
addValueToBin(double weight,
double timestamp)
adds a value to the bin based on the weight of the value, simulation time and lambda parameter of the corresponding histogram.
|
double |
getBinHeight() |
double |
getBinMaxValue() |
double |
getBinMinValue() |
public HistogramBin(double binMinValue, double binMaxValue, ProductAttributePerceptionHistogram correspondingHistogram)
binMinValue
- minimum value corresponding to the binbinMaxValue
- maximum value corresponding to the bincorrespondingHistogram
- the histogram this bin is associated withpublic double getBinHeight()
public double getBinMinValue()
public double getBinMaxValue()
public void addValueToBin(double weight, double timestamp)
weight
- The weight of the value to be added (multiplicable scaling)timestamp
- The simulation time the value is incorporated in the histogram (scales exponentially with lambda of the corresponding histogram)