statistical. quartile

new quartile()

Methods

(static) exc(range, quart) → {number}

Returns the quartile of the data set, based on percentile values from 0..1, exclusive.

Parameters:
NameTypeDescription
rangeArray.<number>

The array or value range of numeric values for which you want the quartile value.

quartnumber

Indicates which value to return.

Returns:

the quartile of the data set, based on percentile values from 0..1, exclusive or an error if the arguments are wrong.

Type: 
number

(static) inc(range, quart) → {number}

Returns the quartile of a data set.

Parameters:
NameTypeDescription
rangeArray.<number>

The array or value range of numeric values for which you want the quartile value.

quartnumber

Indicates which value to return.

Returns:

the quartile of a data set or an error if the arguments are incorrect.

Type: 
number