22 #ifndef __MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 23 #define __MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 44 template<
typename MatType>
45 void Initialize(
const MatType& dataset,
const size_t rank)
63 template<
typename MatType>
64 inline static void WUpdate(
const MatType& V,
68 W = (W % (V * H.t())) / (W * H * H.t());
83 template<
typename MatType>
84 inline static void HUpdate(
const MatType& V,
88 H = (H % (W.t() * V)) / (W.t() * W * H);
static void HUpdate(const MatType &V, const arma::mat &W, arma::mat &H)
The update rule for the encoding matrix H.
Linear algebra utility functions, generally performed on matrices or vectors.
static void WUpdate(const MatType &V, arma::mat &W, const arma::mat &H)
The update rule for the basis matrix W.
NMFMultiplicativeDistanceUpdate()
void Initialize(const MatType &dataset, const size_t rank)
The multiplicative distance update rules for matrices W and H.