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