|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.stat.BaseStatisticsBean
public class BaseStatisticsBean
Bean for performing statistical calculations. The bean keeps sums of X and Y datapoints and sums on squares that can be reused by subclasses. The bean calculates standard deviation (sample and population), variance, average and sum.
Constructor Summary | |
---|---|
BaseStatisticsBean()
|
Method Summary | |
---|---|
void |
addPoint(double x)
Add a data point for the X data set only. |
void |
addPoint(double x,
double y)
Add a data point. |
Object |
clone()
|
long |
getN()
Returns the number of data points. |
double |
getSumXSq()
For use by subclasses, returns sum (X * X). |
double |
getSumXY()
For use by subclasses, returns sum (X * Y). |
double |
getSumYSq()
For use by subclasses, returns sum (Y * Y). |
double |
getXAverage()
Returns the average of all X data points. |
double |
getXStandardDeviationPop()
Calculates standard deviation for X based on the entire population given as arguments. |
double |
getXStandardDeviationSample()
Calculates standard deviation for X based on the sample data points supplied. |
double |
getXSum()
Returns the sum of all X data points. |
double |
getXVariance()
Calculates standard deviation for X based on the sample data points supplied. |
double |
getYAverage()
Returns the average of all Y data points. |
double |
getYStandardDeviationPop()
Calculates standard deviation for Y based on the entire population given as arguments. |
double |
getYStandardDeviationSample()
Calculates standard deviation for Y based on the sample data points supplied. |
double |
getYSum()
Returns the sum of all Y data points. |
double |
getYVariance()
Calculates standard deviation for Y based on the sample data points supplied. |
void |
removePoint(double x)
Remove a X data point only. |
void |
removePoint(double x,
double y)
Remove a data point. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseStatisticsBean()
Method Detail |
---|
public final void addPoint(double x)
x
- is the X data point to add.public final void addPoint(double x, double y)
x
- is the X data point to add.y
- is the Y data point to add.public final void removePoint(double x)
x
- is the X data point to remove.public final void removePoint(double x, double y)
x
- is the X data point to remove.y
- is the Y data point to remove.public final double getXStandardDeviationPop()
public final double getYStandardDeviationPop()
public final double getXStandardDeviationSample()
public final double getYStandardDeviationSample()
public final double getXVariance()
public final double getYVariance()
public final long getN()
public final double getXSum()
public final double getYSum()
public final double getXAverage()
public final double getYAverage()
public final double getSumXSq()
public final double getSumYSq()
public final double getSumXY()
public final Object clone()
clone
in class Object
public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |