Statistics class
Incrementally updated statistics on a set of values.
Signature:
export declare class Statistics
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Incrementally track mean, stdev, min, max, of a sequence of values. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
number |
The maximum value observed. Initialized to | ||
number |
The mean (average) of the values observed. | ||
number |
The minimum value observed. Initialized to | ||
|
number |
The number of decimal places to print in Statistics.toString() | |
number |
Number of values observed. | ||
number |
The standard deviation of the values observed. | ||
number |
The variance of the values observed. |
Methods
Method |
Modifiers |
Description |
---|---|---|
Print the mean of the observations seen, with the precision specified in the constructor. | ||
Update statistics with a new value in the sequence. |