statistical. percentRank

new percentRank()

Methods

(static) exc(array, x, significance) → {number}

Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set.

Parameters:
NameTypeDescription
arrayArray.<number>

The array or range of data with numeric values that defines relative standing

xnumber

The value for which you want to know the rank.

significancenumber

Optional. A value that identifies the number of significant digits for the returned percentage value. If omitted, PERCENTRANK.EXC uses three digits (0.xxx).

Returns:

the rank of a value in a data set as a percentage (0..1, exclusive) of the data set or an error if the arguments are incorrect.

Type: 
number

(static) inc(array, x, significance) → {number}

Returns the percentage rank of a value in a data set.

Parameters:
NameTypeDescription
arrayArray.<number>

The array or range of data with numeric values that defines relative standing.

xnumber

The value for which you want to know the rank.

significancenumber

Optional. A value that identifies the number of significant digits for the returned percentage value. If omitted, PERCENTRANK.INC uses three digits (0.xxx).

Returns:

the percentage rank of a value in a data set or an error if the arguments are incorrect.

Type: 
number