|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.Statistics
The Statistics
represents statistics such as the
minimum value, maximum value, average, etc., which are obtained
in order O(n).
Field Summary | |
protected double |
average
The average; |
protected int |
data_count
The number of data. |
protected double |
deviation
The standard deviation. |
protected double |
maximum
The maximum value; |
protected java.lang.Double |
maximum_limit
The maximum value to use in calculation. |
protected double |
minimum
The minimum value; |
protected java.lang.Double |
minimum_limit
The minimum value to use in calculation. |
protected Statisticable |
target
The target to calculate the statistics. |
Constructor Summary | |
Statistics(Statisticable target)
Constructs a Statistics with a
Statisticable . |
Method Summary | |
void |
calculate()
Calculates the statistics of the target. |
double |
getAverage()
Gets the average value. |
double |
getDeviation()
Gets the standard deviation value. |
double |
getMax()
Gets the maximum value. |
double |
getMin()
Gets the minimum value. |
java.lang.String |
getOutputString()
Returns a string representation of the state of this object. |
double |
getVariance()
Gets the variance value. |
protected java.lang.String |
paramString()
Returns a raw string representation of the state of this object, for debugging use. |
void |
setMaximumLimit(double value)
Sets the maximum limit of value to use in calculation. |
void |
setMinimumLimit(double value)
Sets the minimum limit of value to use in calculation. |
java.lang.String |
toString()
Returns a string representation of the state of this object, for debugging use. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Statisticable target
protected int data_count
protected double minimum
protected double maximum
protected double average
protected double deviation
protected java.lang.Double minimum_limit
protected java.lang.Double maximum_limit
Constructor Detail |
public Statistics(Statisticable target)
Statistics
with a
Statisticable
.target
- the target to calculate the statistics.Method Detail |
public void setMinimumLimit(double value)
value
- the minimum limit.public void setMaximumLimit(double value)
value
- the maximum limit.public void calculate()
public double getMin()
public double getMax()
public double getAverage()
public double getDeviation()
public double getVariance()
public java.lang.String getOutputString()
protected java.lang.String paramString()
toString
method of the subclasses.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |