statistical. mode

new mode()

Methods

(static) mult(values) → {number}

Returns a vertical array of the most frequently occurring, or repetitive values in an array or range of data.

Parameters:
NameTypeDescription
valuesmumber

number1, number2, ... Number arguments 2 to 254 for which you want to calculate the mode. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

a vertical array of the most frequently occurring, or repetitive values in an array or range of data or an error if the arguments are incorrect.

Type: 
number

(static) sngl(values) → {number|Error}

Returns the most common value in a data set.

Parameters:
NameTypeDescription
valuesArray.<number>

number1, number2, ... Arguments 2 to 254 for which you want to calculate the mode. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the most common value in a data set or an error if the arguments are incorrect.

Type: 
number | Error