Package hec.lang
Class StatisticalParameter
java.lang.Object
hec.lang.StatisticalParameter
Title: StatisticalParameter - holds the statistics for a continuing generation of numbers.
Description: It maintains the number of values, the sum of all values, the sum of
the squared values, minimum and maximum.
This is used primarily for storing simulation results that result from
tens of thousands of numbers.
Company:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StatisticalParameter
public StatisticalParameter()
-
-
Method Details
-
reset
public void reset() -
getMean
public double getMean() -
getStdDev
public double getStdDev() -
getVariance
public double getVariance() -
getSum
public double getSum() -
getSumSquared
public double getSumSquared() -
getNumberOfValues
public int getNumberOfValues() -
getMax
public double getMax() -
getMin
public double getMin() -
addValue
public int addValue(double valueIn) -
addValue
public int addValue(int numValIn, double SumIn, double SumSqIn, double minVal, double maxVal) -
main
- Throws:
IOException
-