mlpack
Static Public Member Functions | List of all members
mlpack::gmm::DiagonalConstraint Class Reference

Force a covariance matrix to be diagonal. More...

#include <diagonal_constraint.hpp>

Static Public Member Functions

static void ApplyConstraint (arma::mat &covariance)
 Force a covariance matrix to be diagonal.
 
static void ApplyConstraint (arma::vec &diagCovariance)
 Apply the diagonal constraint to the given diagonal covariance matrix (which is represented as a vector), and ensure each value on the diagonal is at least 1e-10.
 
template<typename Archive >
static void serialize (Archive &, const uint32_t)
 Serialize the constraint (which holds nothing, so, nothing to do).
 

Detailed Description

Force a covariance matrix to be diagonal.


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