private static class HistogramPlot.HistogramBin
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
count |
private double |
endX |
private float |
max |
private float |
min |
private static long |
serialVersionUID |
private float |
squaredSum |
private double |
startX |
private float |
sum |
Modifier | Constructor and Description |
---|---|
private |
HistogramPlot.HistogramBin(float startX,
float endX)
Create a new HistogramBin.
|
Modifier and Type | Method and Description |
---|---|
void |
addMeasurement(float y)
Add a measurement to this bin.
|
float |
getCount()
Get the number of values in this bin.
|
double |
getEndX() |
float |
getMax()
Get the maximum of all values in this bin.
|
float |
getMean()
Get the mean of all values in this bin.
|
float |
getMin()
Get the minumum of all values in this bin.
|
double |
getStartX() |
float |
getStdev()
Get the standard deviation of all values in this bin.
|
float |
getSum()
Get the sum of all values in this bin.
|
void |
increaseCount()
Increase the count value in this bin.
|
private static final long serialVersionUID
private final double startX
private final double endX
private int count
private float sum
private float squaredSum
private float min
private float max
private HistogramPlot.HistogramBin(float startX, float endX)
startX
- The min x-axis values for this binendX
- The max x-axis value for this binpublic double getStartX()
public double getEndX()
public void increaseCount()
HistogramPlot.YAggregate.COUNT
values.public void addMeasurement(float y)
HistogramPlot.YAggregate.COUNT
. This method increases the count and updates
the sum, max and min values as required.y
- The y value to addpublic float getCount()
public float getSum()
HistogramPlot.YAggregate.COUNT
.public float getMean()
HistogramPlot.YAggregate.COUNT
.public float getMin()
HistogramPlot.YAggregate.COUNT
.public float getMax()
HistogramPlot.YAggregate.COUNT
.public float getStdev()
HistogramPlot.YAggregate.COUNT
.