Go to the documentation of this file.
12 #ifndef MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP
13 #define MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP
49 template<
typename MatType>
69 template<
typename MatType>
70 inline static void WUpdate(
const MatType& V,
74 W = (W % (V * H.t())) / (W * H * H.t());
91 template<
typename MatType>
92 inline static void HUpdate(
const MatType& V,
96 H = (H % (W.t() * V)) / (W.t() * W * H);
100 template<
typename Archive>
void Initialize(const MatType &, const size_t)
Initialize the factorization.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void HUpdate(const MatType &V, const arma::mat &W, arma::mat &H)
The update rule for the encoding matrix H.
NMFMultiplicativeDistanceUpdate()
void serialize(Archive &, const unsigned int)
Serialize the object (in this case, there is nothing to serialize).
Linear algebra utility functions, generally performed on matrices or vectors.
The multiplicative distance update rules for matrices W and H.
static void WUpdate(const MatType &V, arma::mat &W, const arma::mat &H)
The update rule for the basis matrix W.