14 #ifndef __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP
15 #define __MLPACK_METHODS_AMF_AVERAGE_INIT_HPP
35 template<
typename MatType>
47 for(
typename MatType::const_row_col_iterator it = V.begin();it != V.end();it++)
53 if(*it < min) min = *it;
56 V_avg = sqrt(((V_avg / (n * m)) - min) / r);
Linear algebra utility functions, generally performed on matrices or vectors.
This initialization rule initializes matrix W and H to root of average of V with uniform noise...
static void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)