new SimpleStats(min, max, mean, stdDev)
Simple statistics
Parameters:
Name | Type | Description |
---|---|---|
min | number | The minimum value. |
max | number | The maximum value. |
mean | number | The mean value. |
stdDev | number | The standard deviation. |
- Source
Methods
asObject() → {object}
Get the stats as an object
- Source
Returns:
An object representation of the stats.
- Type:
- object
equals(rhs) → {boolean}
Check for Stats equality.
Parameters:
Name | Type | Description |
---|---|---|
rhs | object | The other Stats object to compare to. |
- Source
Returns:
True if both Stats object are equal.
- Type:
- boolean
getMax() → {number}
Get the maximum value.
- Source
Returns:
The maximum value.
- Type:
- number
getMean() → {number}
Get the mean value.
- Source
Returns:
The mean value.
- Type:
- number
getMin() → {number}
Get the minimum value.
- Source
Returns:
The minimum value.
- Type:
- number
getStdDev() → {number}
Get the standard deviation.
- Source
Returns:
The standard deviation.
- Type:
- number