new rank()
- Source
Methods
(static) avg(number, ref, order) → {number}
Returns the rank of a number in a list of numbers.
Parameters:
Name | Type | Description |
---|---|---|
number | number | The number whose rank you want to find. |
ref | Array.<number> | An array of, or a reference to, a list of numbers. Nonnumeric values in Ref are ignored. |
order | boolean | Optional. A number specifying how to rank number. |
- Source
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:
Name | Type | Description |
---|---|---|
number | number | The number whose rank you want to find. |
ref | Array.<number> | An array of, or a reference to, a list of numbers. Non-numeric values in Ref are ignored. |
order | boolean | Optional. A number specifying how to rank number. |
- Source
- See
- For further information, see docs.oasis-open.org
Returns:
the rank of a number in a list of numbers or an error if the arguments are incorrect.
- Type:
- number