double
[] Mode(
double
[]
values
)
Return a list of the most frequently occurring item in values.
Example
=
Block
{
ShowMode
([14, 2, 2, 5, 7, 7, 7]);
ShowMode
([1, 2, 3, 4, 5]);
ShowMode
([
-
1, 2, 3, 6,
-
1]);
};
The mode of 14, 2, 2, 5, 7, 7 and 7 is [7]
The mode of 1, 2, 3, 4 and 5 is [1, 2, 3, 4, 5]
The mode of -1, 2, 3, 6 and -1 is [-1]