mode(x: array,dim?: 0 | 1,): number
Most frequent value in an array.
Finds the most frequently occurring value in an array or matrix. In case of ties, returns the first value that achieves the maximum frequency.
x: array
Input array or matrix
mode(x: matrix,dim?: 0 | 1,): array
Most frequent value in an array.
Finds the most frequently occurring value in an array or matrix. In case of ties, returns the first value that achieves the maximum frequency.
x: matrix
Input array or matrix
Most frequent values