Scythe-1.0.3
template<typename T , matrix_order PO, matrix_style PS>
T scythe::mode ( const Matrix< T, PO, PS > &  A)

Calculate the mode of a Matrix.

This function calculates the mode of a matrix by determining which value of the matrix occurs with the highest frequency.

Parameters:
AThe matrix whose mode is of interest.
See also:
modec(const Matrix<T,PO,PS> &A)
mean(const Matrix<T,PO,PS> &A)
median(const Matrix<T,PO,PS> &A)

References scythe::Matrix< T_type, ORDER, STYLE >::begin(), scythe::Matrix< T_type, ORDER, STYLE >::end(), scythe::Matrix_base< ORDER, STYLE >::size(), and sort().

Referenced by scythe::rng< mersenne >::rnchypgeom().