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

Calculate the mean of each column of a Matrix.

This function calculates the mean of each column of a matrix by summing all elements of a column in the matrix, divding by the total number of elements in the column, and looping over every column in the matrix.

Parameters:
AThe matrix to be averaged.
See also:
sumc(const Matrix<T,PO,PS> &A)
mean(const Matrix<T,PO,PS> &A)
medianc(const Matrix<T,PO,PS> &A)
modec(const Matrix<T,PO,PS> &A)
variancec(const Matrix<T,PO,PS> &A)