statistical. rank

new rank()

Methods

(static) avg(number, ref, order) → {number}

Returns the rank of a number in a list of numbers.

Parameters:
NameTypeDescription
numbernumber

The number whose rank you want to find.

refArray.<number>

An array of, or a reference to, a list of numbers. Nonnumeric values in Ref are ignored.

orderboolean

Optional. A number specifying how to rank number.

Returns:

the rank of a number in a list of numbers or an error if the arguments are incorrect.

Type: 
number

(static) eq(number, ref, order) → {number}

Returns the rank of a number in a list of numbers.

Parameters:
NameTypeDescription
numbernumber

The number whose rank you want to find.

refArray.<number>

An array of, or a reference to, a list of numbers. Non-numeric values in Ref are ignored.

orderboolean

Optional. A number specifying how to rank number.

See
Returns:

the rank of a number in a list of numbers or an error if the arguments are incorrect.

Type: 
number