|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.plot.HistogramPlot.HistogramBin
private static class HistogramPlot.HistogramBin
Represents a single bin in a histogram.
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
private |
HistogramPlot.HistogramBin(float startX,
float endX)
Create a new HistogramBin. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
private HistogramPlot.HistogramBin(float startX, float endX)
startX
- The min x-axis values for this binendX
- The max x-axis value for this binMethod Detail |
---|
public 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
.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |