Template Function mrpt::math::meanAndStdColumns
Defined in File ops_matrices.h
Function Documentation
-
template<class MAT_IN, class VEC>
void mrpt::math::meanAndStdColumns(const MAT_IN &m, VEC &outMeanVector, VEC &outStdVector, const bool unbiased_variance = true) Computes a row with the mean values of each column in the matrix and the associated vector with the standard deviation of each column.
See also
mean,meanAndStdAll
- Throws:
std::exception – If the matrix/vector is empty.
- Parameters:
unbiased_variance – Standard deviation is sum(vals-mean)/K, with K=N-1 or N for unbiased_variance=true or false, respectively.