statistical. percentile

new percentile()

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:
NameTypeDescription
arrayArray.<number>

The array or range of data that defines relative standing.

knumber

The percentile value in the range 0..1, exclusive.

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:
NameTypeDescription
arrayArray.<number>

The array or range of data that defines relative standing.

knumber

The percentile value in the range 0..1, inclusive.

Returns:

the k-th percentile of values in a range or an error if the arguments are incorrect.

Type: 
number