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

Calculate the mean of a Matrix.

This function calculates the mean of a matrix by summing all elements of the matrix, and dividing by the total number of elements in the matrix.

Parameters:
AThe matrix to be averaged.
See also:
sum(const Matrix<T,PO,PS> &A)
meanc(const Matrix<T,PO,PS> &A)
median(const Matrix<T,PO,PS> &A)
mode(const Matrix<T,PO,PS> &A)
variance(const Matrix<T,PO,PS> &A)

Referenced by dnorm(), kurtosis(), lndnorm(), scythe::rng< mersenne >::rnorm(), scythe::rng< mersenne >::rtanorm_combo(), scythe::rng< mersenne >::rtanorm_slice(), skew(), and var().