new percentile()
- Source
Methods
(static) exc(array, k) → {number}
Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive.
Parameters:
Name | Type | Description |
---|---|---|
array | Array.<number> | The array or range of data that defines relative standing. |
k | number | The percentile value in the range 0..1, exclusive. |
- Source
Returns:
the k-th percentile of values in a range, where k is in the range 0..1, exclusive or an error if the arguments aer incorrect.
- Type:
- number
(static) inc(array, k) → {number}
Returns the k-th percentile of values in a range.
Parameters:
Name | Type | Description |
---|---|---|
array | Array.<number> | The array or range of data that defines relative standing. |
k | number | The percentile value in the range 0..1, inclusive. |
- Source
Returns:
the k-th percentile of values in a range or an error if the arguments are incorrect.
- Type:
- number