mlpack::nmf::WMultiplicativeDistanceRule Class Reference

The update rule for the basis matrix W. More...

List of all members.

Public Member Functions

 WMultiplicativeDistanceRule ()

Static Public Member Functions

template<typename MatType >
static void Update (const MatType &V, arma::mat &W, const arma::mat &H)
 The update function that actually updates the W matrix.

Detailed Description

The update rule for the basis matrix W.

The formula used is

\[ W_{ia} \leftarrow W_{ia} \frac{(VH^T)_{ia}}{(WHH^T)_{ia}} \]

Definition at line 41 of file mult_dist_update_rules.hpp.


Constructor & Destructor Documentation

mlpack::nmf::WMultiplicativeDistanceRule::WMultiplicativeDistanceRule (  )  [inline]

Definition at line 45 of file mult_dist_update_rules.hpp.


Member Function Documentation

template<typename MatType >
static void mlpack::nmf::WMultiplicativeDistanceRule::Update ( const MatType &  V,
arma::mat &  W,
const arma::mat &  H 
) [inline, static]

The update function that actually updates the W matrix.

The function takes in all the matrices and only changes the value of the W matrix.

Parameters:
V Input matrix to be factorized.
W Basis matrix to be updated.
H Encoding matrix.

Definition at line 56 of file mult_dist_update_rules.hpp.


The documentation for this class was generated from the following file:

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1