## Class Statistics

• ### Constructor Summary

Constructors
Constructor Description
`Statistics()`
• ### Method Summary

All Methods
Modifier and Type Method Description
`static double` `avg​(double... numbers)`
Sample average.
`static double` ```avg​(Expression f, Argument index, double from, double to, double delta)```
Average from sample function values - iterative operator.
`static double` `median​(double... numbers)`
Sample median
`static double` `mode​(double... numbers)`
Sample mode
`static double` `std​(double... numbers)`
Sample standard deviation (biased-corrected).
`static double` ```std​(Expression f, Argument index, double from, double to, double delta)```
Bias-corrected standard deviation from sample function values - iterative operator.
`static double` `var​(double... numbers)`
Sample variance (biased-corrected).
`static double` ```var​(Expression f, Argument index, double from, double to, double delta)```
Bias-corrected variance from sample function values - iterative operator.
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Constructor Detail

• #### Statistics

`public Statistics()`
• ### Method Detail

• #### avg

```public static double avg​(Expression f,
Argument index,
double from,
double to,
double delta)```
Average from sample function values - iterative operator.
Parameters:
`f` - the expression
`index` - the name of index argument
`from` - FROM index = form
`to` - TO index = to
`delta` - BY delta
Returns:
product operation (for empty product operations returns 1).
`Expression`, `Argument`
• #### var

```public static double var​(Expression f,
Argument index,
double from,
double to,
double delta)```
Bias-corrected variance from sample function values - iterative operator.
Parameters:
`f` - the expression
`index` - the name of index argument
`from` - FROM index = form
`to` - TO index = to
`delta` - BY delta
Returns:
product operation (for empty product operations returns 1).
`Expression`, `Argument`
• #### std

```public static double std​(Expression f,
Argument index,
double from,
double to,
double delta)```
Bias-corrected standard deviation from sample function values - iterative operator.
Parameters:
`f` - the expression
`index` - the name of index argument
`from` - FROM index = form
`to` - TO index = to
`delta` - BY delta
Returns:
product operation (for empty product operations returns 1).
`Expression`, `Argument`
• #### avg

`public static double avg​(double... numbers)`
Sample average.
Parameters:
`numbers` - the numbers
Returns:
if each number from numbers <> Double.NaN returns avg(a_1,...,a_n) a_1,...,a_n in numbers, otherwise returns Double.NaN.
• #### var

`public static double var​(double... numbers)`
Sample variance (biased-corrected).
Parameters:
`numbers` - the numbers
Returns:
if each number from numbers <> Double.NaN returns Var(a_1,...,a_n) a_1,...,a_n in numbers, otherwise returns Double.NaN.
• #### std

`public static double std​(double... numbers)`
Sample standard deviation (biased-corrected).
Parameters:
`numbers` - the numbers
Returns:
if each number from numbers <> Double.NaN returns Std(a_1,...,a_n) a_1,...,a_n in numbers, otherwise returns Double.NaN.
• #### median

`public static double median​(double... numbers)`
Sample median
Parameters:
`numbers` - List of number
Returns:
Sample median, if table was empty or null then Double.NaN is returned.
• #### mode

`public static double mode​(double... numbers)`
Sample mode
Parameters:
`numbers` - List of number
Returns:
Sample median, if table was empty or null then Double.NaN is returned.