support class for MOG_diag_kmeans() More...
#include <itpp/stat/mog_diag_kmeans.h>
Public Member Functions | |
MOG_diag_kmeans_sup () | |
Default constructor. More... | |
~MOG_diag_kmeans_sup () | |
Default destructor. More... | |
void | run (MOG_diag &model_in, Array< vec > &X_in, int max_iter_in=10, double trust_in=0.5, bool normalise_in=true, bool verbose_in=false) |
ADD DOCUMENTATION HERE. More... | |
void | cleanup () |
Release memory used by the model. The model will be empty. More... | |
void | load (const std::string &name_in) |
Initialise the model by loading the parameters from a model file. More... | |
void | convert_to_full () |
Do nothing. Present for compatability with the MOG_generic class. More... | |
double | log_lhood_single_gaus (const double *c_x_in, const int k) const |
calculate the log likelihood of C vector c_x_in using only Gaussian k More... | |
double | log_lhood_single_gaus (const vec &x_in, const int k) const |
calculate the log likelihood of IT++ vector x_in using only Gaussian k More... | |
virtual double | log_lhood_single_gaus (const vec &x_in, const int k) |
calculate the log likelihood of vector x_in using only Gaussian k More... | |
double | log_lhood (const double *c_x_in) |
calculate the log likelihood of C vector c_x_in More... | |
double | log_lhood (const vec &x_in) |
calculate the log likelihood of IT++ vector x_in More... | |
double | lhood (const double *c_x_in) |
calculate the likelihood of C vector c_x_in More... | |
double | lhood (const vec &x_in) |
calculate the likelihood of IT++ vector x_in More... | |
double | avg_log_lhood (const double **c_x_in, int N) |
calculate the average log likelihood of an array of C vectors ( c_x_in ) More... | |
double | avg_log_lhood (const Array< vec > &X_in) |
calculate the average log likelihood of an array of IT++ vectors ( X_in ) More... | |
void | init () |
Initialise the model to be empty. More... | |
void | init (const int &K_in, const int &D_in, bool full_in=false) |
initialise the model so that all Gaussians have zero mean and unit variance for all dimensions More... | |
void | init (Array< vec > &means_in, bool full_in=false) |
Initialise the model using user supplied mean vectors. More... | |
void | init (Array< vec > &means_in, Array< vec > &diag_covs_in, vec &weights_in) |
Initialise the model using user supplied parameters (diagonal covariance version) More... | |
void | init (Array< vec > &means_in, Array< mat > &full_covs_in, vec &weights_in) |
Initialise the model using user supplied parameters (full covariance version) More... | |
bool | is_valid () const |
Returns true if the model's parameters are valid. More... | |
bool | is_full () const |
Returns true if the model has full covariance matrices. More... | |
int | get_K () const |
Return the number of Gaussians. More... | |
int | get_D () const |
Return the dimensionality. More... | |
vec | get_weights () const |
Obtain a copy of the weight vector. More... | |
Array< vec > | get_means () const |
Obtain a copy of the array of mean vectors. More... | |
Array< vec > | get_diag_covs () const |
Obtain a copy of the array of diagonal covariance vectors. More... | |
Array< mat > | get_full_covs () const |
Obtain a copy of the array of full covariance matrices. More... | |
void | set_means (Array< vec > &means_in) |
Set the means of the model. More... | |
void | set_diag_covs (Array< vec > &diag_covs_in) |
Set the diagonal covariance vectors of the model. More... | |
void | set_full_covs (Array< mat > &full_covs_in) |
Set the full covariance matrices of the model. More... | |
void | set_weights (vec &weights_in) |
Set the weight vector of the model. More... | |
void | set_means_zero () |
Set the means in the model to be zero. More... | |
void | set_diag_covs_unity () |
Set the diagonal covariance vectors to be unity. More... | |
void | set_full_covs_unity () |
Set the full covariance matrices to be unity. More... | |
void | set_weights_uniform () |
Set all the weights to 1/K, where K is the number of Gaussians. More... | |
void | set_checks (bool do_checks_in) |
Enable/disable internal checks for likelihood functions. More... | |
void | set_paranoid (bool paranoid_in) |
Enable/disable paranoia about numerical stability. More... | |
virtual void | save (const std::string &name_in) const |
Save the model's parameters to a model file. More... | |
virtual void | join (const MOG_generic &B_in) |
Mathematically join the model with a user supplied model. More... | |
virtual void | convert_to_diag () |
Convert the model to use diagonal covariances. More... | |
Protected Member Functions | |
double | dist (const double *x, const double *y) const |
ADD DOCUMENTATION HERE. More... | |
void | assign_to_means () |
ADD DOCUMENTATION HERE. More... | |
void | recalculate_means () |
ADD DOCUMENTATION HERE. More... | |
bool | dezombify_means () |
ADD DOCUMENTATION HERE. More... | |
double | measure_change () const |
ADD DOCUMENTATION HERE. More... | |
void | initial_means () |
ADD DOCUMENTATION HERE. More... | |
void | iterate () |
ADD DOCUMENTATION HERE. More... | |
void | calc_means () |
ADD DOCUMENTATION HERE. More... | |
void | calc_covs () |
ADD DOCUMENTATION HERE. More... | |
void | calc_weights () |
ADD DOCUMENTATION HERE. More... | |
void | normalise_vectors () |
ADD DOCUMENTATION HERE. More... | |
void | unnormalise_vectors () |
ADD DOCUMENTATION HERE. More... | |
void | unnormalise_means () |
ADD DOCUMENTATION HERE. More... | |
void | setup_means () |
additional processing of mean vectors, done as the last step of mean initialisation More... | |
void | setup_covs () |
additional processing of covariance vectors/matrices, done as the last step of covariance initialisation More... | |
void | setup_weights () |
additional processing of the weight vector, done as the last step of weight initialisation More... | |
void | setup_misc () |
additional processing of miscellaneous parameters, done as the last step of overall initialisation More... | |
double | log_lhood_single_gaus_internal (const double *c_x_in, const int k) const |
ADD DOCUMENTATION HERE. More... | |
double | log_lhood_single_gaus_internal (const vec &x_in, const int k) const |
ADD DOCUMENTATION HERE. More... | |
virtual double | log_lhood_single_gaus_internal (const vec &x_in, const int k) |
ADD DOCUMENTATION HERE. More... | |
double | log_lhood_internal (const double *c_x_in) |
ADD DOCUMENTATION HERE. More... | |
double | log_lhood_internal (const vec &x_in) |
ADD DOCUMENTATION HERE. More... | |
double | lhood_internal (const double *c_x_in) |
ADD DOCUMENTATION HERE. More... | |
double | lhood_internal (const vec &x_in) |
ADD DOCUMENTATION HERE. More... | |
double ** | enable_c_access (Array< vec > &A_in) |
Enable C style access to an Array of vectors (vec) More... | |
int ** | enable_c_access (Array< ivec > &A_in) |
Enable C style access to an Array of vectors (ivec) More... | |
double * | enable_c_access (vec &v_in) |
Enable C style access to a vector (vec) More... | |
int * | enable_c_access (ivec &v_in) |
Enable C style access to a vector (ivec) More... | |
double ** | disable_c_access (double **A_in) |
Disable C style access to an Array of vectors (vec) More... | |
int ** | disable_c_access (int **A_in) |
Disable C style access to an Array of vectors (ivec) More... | |
double * | disable_c_access (double *v_in) |
Disable C style access to a vector (vec) More... | |
int * | disable_c_access (int *v_in) |
Disable C style access to a vector (ivec) More... | |
void | zero_all_ptrs () |
ADD DOCUMENTATION HERE. More... | |
void | free_all_ptrs () |
ADD DOCUMENTATION HERE. More... | |
bool | check_size (const vec &x_in) const |
Check if vector x_in has the same dimensionality as the model. More... | |
bool | check_size (const Array< vec > &X_in) const |
Check if all vectors in Array X_in have the same dimensionality as the model. More... | |
bool | check_array_uniformity (const Array< vec > &A) const |
Check if all vectors in Array X_in have the same dimensionality. More... | |
void | set_means_internal (Array< vec > &means_in) |
ADD DOCUMENTATION HERE. More... | |
void | set_diag_covs_internal (Array< vec > &diag_covs_in) |
ADD DOCUMENTATION HERE. More... | |
void | set_full_covs_internal (Array< mat > &full_covs_in) |
ADD DOCUMENTATION HERE. More... | |
void | set_weights_internal (vec &_weigths) |
ADD DOCUMENTATION HERE. More... | |
void | set_means_zero_internal () |
ADD DOCUMENTATION HERE. More... | |
void | set_diag_covs_unity_internal () |
ADD DOCUMENTATION HERE. More... | |
void | set_full_covs_unity_internal () |
ADD DOCUMENTATION HERE. More... | |
void | set_weights_uniform_internal () |
ADD DOCUMENTATION HERE. More... | |
void | convert_to_diag_internal () |
ADD DOCUMENTATION HERE. More... | |
void | convert_to_full_internal () |
ADD DOCUMENTATION HERE. More... | |
Protected Attributes | |
int | max_iter |
Maximum number of iterations. More... | |
double | trust |
trust factor, where 0 <= trust <= 1. More... | |
bool | verbose |
Whether we print the progress. More... | |
int | N |
number of training vectors More... | |
double ** | c_X |
'C' pointers to training vectors More... | |
Array< vec > | means_old |
means from the previous iteration, used to measure progress More... | |
double ** | c_means_old |
'C' pointers to old means More... | |
Array< ivec > | partitions |
contains indices of vectors assigned to each mean More... | |
int ** | c_partitions |
'C' pointers to partition vectors More... | |
ivec | count |
keeps a count of the number of vectors assigned to each mean More... | |
int * | c_count |
'C' pointer to the count vector More... | |
double ** | c_means |
pointers to the mean vectors More... | |
double ** | c_diag_covs |
pointers to the covariance vectors More... | |
double ** | c_diag_covs_inv_etc |
pointers to the inverted covariance vectors More... | |
double * | c_weights |
pointer to the weight vector More... | |
double * | c_log_weights |
pointer to the log version of the weight vector More... | |
double * | c_log_det_etc |
pointer to the log_det_etc vector More... | |
bool | do_checks |
indicates whether checks on input data are done More... | |
bool | valid |
indicates whether the parameters are valid More... | |
bool | full |
indicates whether we are using full or diagonal covariance matrices More... | |
bool | paranoid |
indicates whether we are paranoid about numerical stability More... | |
int | K |
number of gaussians More... | |
int | D |
dimensionality More... | |
Array< vec > | means |
means More... | |
Array< vec > | diag_covs |
diagonal covariance matrices, stored as vectors More... | |
Array< mat > | full_covs |
full covariance matrices More... | |
vec | weights |
weights More... | |
double | log_max_K |
Pre-calcualted std::log(std::numeric_limits<double>::max() / K), where K is the number of Gaussians. More... | |
vec | log_det_etc |
Gaussian specific pre-calcualted constants. More... | |
vec | log_weights |
Pre-calculated log versions of the weights. More... | |
Array< mat > | full_covs_inv |
Pre-calcuated inverted version of each full covariance matrix. More... | |
Array< vec > | diag_covs_inv_etc |
Pre-calcuated inverted version of each diagonal covariance vector, where the covariance elements are first multiplied by two. More... | |
support class for MOG_diag_kmeans()
Definition at line 44 of file mog_diag_kmeans.h.
|
inline |
Default constructor.
Definition at line 49 of file mog_diag_kmeans.h.
|
inline |
Default destructor.
Definition at line 52 of file mog_diag_kmeans.h.
void itpp::MOG_diag_kmeans_sup::run | ( | MOG_diag & | model_in, |
Array< vec > & | X_in, | ||
int | max_iter_in = 10 , |
||
double | trust_in = 0.5 , |
||
bool | normalise_in = true , |
||
bool | verbose_in = false |
||
) |
ADD DOCUMENTATION HERE.
Definition at line 264 of file mog_diag_kmeans.cpp.
References c_count, c_means_old, c_partitions, c_X, calc_covs(), calc_means(), calc_weights(), itpp::MOG_generic::check_size(), itpp::MOG_diag::cleanup(), count, itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_diag::disable_c_access(), itpp::MOG_diag::enable_c_access(), itpp::MOG_generic::get_diag_covs(), itpp::MOG_generic::get_means(), itpp::MOG_generic::get_weights(), itpp::MOG_generic::init(), itpp::MOG_generic::is_valid(), it_assert, it_warning, itpp::MOG_generic::K, max_iter, itpp::MOG_generic::means, means_old, N, normalise_vectors(), partitions, itpp::Array< T >::set_size(), itpp::Array< T >::size(), trust, unnormalise_means(), unnormalise_vectors(), verbose, and itpp::MOG_generic::weights.
Referenced by itpp::MOG_diag_kmeans().
|
inlineprotected |
ADD DOCUMENTATION HERE.
Definition at line 36 of file mog_diag_kmeans.cpp.
References itpp::MOG_generic::D.
Referenced by assign_to_means(), and measure_change().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 43 of file mog_diag_kmeans.cpp.
References c_count, itpp::MOG_diag::c_means, c_partitions, c_X, count, dist(), itpp::MOG_generic::K, and N.
Referenced by dezombify_means(), and iterate().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 65 of file mog_diag_kmeans.cpp.
References c_count, itpp::MOG_diag::c_means, c_partitions, c_X, itpp::MOG_generic::D, and itpp::MOG_generic::K.
Referenced by iterate().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 88 of file mog_diag_kmeans.cpp.
References assign_to_means(), c_count, itpp::MOG_diag::c_means, c_partitions, c_X, count, itpp::MOG_generic::D, it_warning, itpp::MOG_generic::K, and verbose.
Referenced by iterate().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 130 of file mog_diag_kmeans.cpp.
References itpp::MOG_diag::c_means, c_means_old, dist(), and itpp::MOG_generic::K.
Referenced by iterate().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 139 of file mog_diag_kmeans.cpp.
References itpp::MOG_diag::c_means, c_X, itpp::MOG_generic::D, itpp::floor(), itpp::MOG_generic::K, and N.
Referenced by calc_means().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 161 of file mog_diag_kmeans.cpp.
References assign_to_means(), itpp::MOG_diag::c_means, c_means_old, itpp::MOG_generic::D, dezombify_means(), itpp::MOG_generic::K, max_iter, measure_change(), recalculate_means(), and verbose.
Referenced by calc_means().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 183 of file mog_diag_kmeans.cpp.
References initial_means(), and iterate().
Referenced by run().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 190 of file mog_diag_kmeans.cpp.
References c_count, itpp::MOG_diag::c_diag_covs, itpp::MOG_diag::c_means, c_partitions, c_X, itpp::MOG_generic::D, itpp::MOG_generic::K, and trust.
Referenced by run().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 216 of file mog_diag_kmeans.cpp.
References c_count, itpp::MOG_diag::c_weights, itpp::MOG_generic::K, N, and trust.
Referenced by run().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 222 of file mog_diag_kmeans.cpp.
References c_X, itpp::MOG_generic::D, N, and itpp::sqrt().
Referenced by run().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 244 of file mog_diag_kmeans.cpp.
References c_X, itpp::MOG_generic::D, and N.
Referenced by run().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 254 of file mog_diag_kmeans.cpp.
References itpp::MOG_diag::c_means, itpp::MOG_generic::D, and itpp::MOG_generic::K.
Referenced by run().
|
inlinevirtualinherited |
Release memory used by the model. The model will be empty.
Reimplemented from itpp::MOG_generic.
Definition at line 111 of file mog_diag.h.
References itpp::MOG_generic::cleanup().
Referenced by itpp::MOG_diag_EM_sup::ml(), and run().
|
virtualinherited |
Initialise the model by loading the parameters from a model file.
name_in | The model's filename |
Reimplemented from itpp::MOG_generic.
Definition at line 277 of file mog_diag.cpp.
References itpp::MOG_generic::convert_to_diag(), itpp::MOG_generic::full, and itpp::MOG_generic::load().
|
inlinevirtualinherited |
Do nothing. Present for compatability with the MOG_generic class.
Reimplemented from itpp::MOG_generic.
Definition at line 121 of file mog_diag.h.
|
inherited |
calculate the log likelihood of C vector c_x_in
using only Gaussian k
Definition at line 59 of file mog_diag.cpp.
References itpp::MOG_generic::do_checks, it_assert, itpp::MOG_generic::K, itpp::MOG_diag::log_lhood_single_gaus_internal(), and itpp::MOG_generic::valid.
|
inherited |
calculate the log likelihood of IT++ vector x_in
using only Gaussian k
Definition at line 69 of file mog_diag.cpp.
References itpp::MOG_generic::check_size(), itpp::MOG_generic::do_checks, it_assert, itpp::MOG_generic::K, itpp::MOG_diag::log_lhood_single_gaus_internal(), and itpp::MOG_generic::valid.
|
virtualinherited |
calculate the log likelihood of vector x_in
using only Gaussian k
Definition at line 550 of file mog_generic.cpp.
References itpp::MOG_generic::check_size(), itpp::MOG_generic::do_checks, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::log_lhood_single_gaus_internal(), and itpp::MOG_generic::valid.
|
inherited |
calculate the log likelihood of C vector c_x_in
Definition at line 122 of file mog_diag.cpp.
References itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::log_lhood_internal(), and itpp::MOG_generic::valid.
|
virtualinherited |
calculate the log likelihood of IT++ vector x_in
Reimplemented from itpp::MOG_generic.
Definition at line 112 of file mog_diag.cpp.
References itpp::MOG_generic::check_size(), itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::log_lhood_internal(), and itpp::MOG_generic::valid.
|
inherited |
calculate the likelihood of C vector c_x_in
Definition at line 170 of file mog_diag.cpp.
References itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::lhood_internal(), and itpp::MOG_generic::valid.
|
virtualinherited |
calculate the likelihood of IT++ vector x_in
Reimplemented from itpp::MOG_generic.
Definition at line 160 of file mog_diag.cpp.
References itpp::MOG_generic::check_size(), itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::lhood_internal(), and itpp::MOG_generic::valid.
|
inherited |
calculate the average log likelihood of an array of C vectors ( c_x_in
)
Definition at line 181 of file mog_diag.cpp.
References itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::log_lhood_internal(), and itpp::MOG_generic::valid.
|
virtualinherited |
calculate the average log likelihood of an array of IT++ vectors ( X_in
)
Reimplemented from itpp::MOG_generic.
Definition at line 195 of file mog_diag.cpp.
References itpp::MOG_generic::check_size(), itpp::MOG_generic::do_checks, it_assert, itpp::MOG_diag::log_lhood_internal(), itpp::Array< T >::size(), and itpp::MOG_generic::valid.
|
protectedvirtualinherited |
additional processing of mean vectors, done as the last step of mean initialisation
Reimplemented from itpp::MOG_generic.
Definition at line 231 of file mog_diag.cpp.
References itpp::MOG_diag::c_means, itpp::MOG_diag::disable_c_access(), itpp::MOG_diag::enable_c_access(), itpp::MOG_generic::means, and itpp::MOG_generic::setup_means().
|
protectedvirtualinherited |
additional processing of covariance vectors/matrices, done as the last step of covariance initialisation
Reimplemented from itpp::MOG_generic.
Definition at line 239 of file mog_diag.cpp.
References itpp::MOG_diag::c_diag_covs, itpp::MOG_diag::c_diag_covs_inv_etc, itpp::MOG_diag::c_log_det_etc, itpp::MOG_generic::diag_covs, itpp::MOG_generic::diag_covs_inv_etc, itpp::MOG_diag::disable_c_access(), itpp::MOG_diag::enable_c_access(), itpp::MOG_generic::full, itpp::MOG_generic::log_det_etc, and itpp::MOG_generic::setup_covs().
|
protectedvirtualinherited |
additional processing of the weight vector, done as the last step of weight initialisation
Reimplemented from itpp::MOG_generic.
Definition at line 254 of file mog_diag.cpp.
References itpp::MOG_diag::c_log_weights, itpp::MOG_diag::c_weights, itpp::MOG_diag::disable_c_access(), itpp::MOG_diag::enable_c_access(), itpp::MOG_generic::log_weights, itpp::MOG_generic::setup_weights(), and itpp::MOG_generic::weights.
|
protectedvirtualinherited |
additional processing of miscellaneous parameters, done as the last step of overall initialisation
Reimplemented from itpp::MOG_generic.
Definition at line 266 of file mog_diag.cpp.
References itpp::MOG_generic::convert_to_diag_internal(), itpp::MOG_diag::disable_c_access(), itpp::MOG_diag::enable_c_access(), itpp::MOG_generic::full, itpp::MOG_generic::K, and itpp::MOG_generic::setup_misc().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 37 of file mog_diag.cpp.
References itpp::MOG_diag::c_diag_covs_inv_etc, itpp::MOG_diag::c_log_det_etc, itpp::MOG_diag::c_means, and itpp::MOG_generic::D.
Referenced by itpp::MOG_diag::lhood_internal(), itpp::MOG_diag::log_lhood_internal(), itpp::MOG_diag::log_lhood_single_gaus(), itpp::MOG_diag::log_lhood_single_gaus_internal(), and itpp::MOG_diag_EM_sup::ml_update_params().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 53 of file mog_diag.cpp.
References itpp::MOG_diag::log_lhood_single_gaus_internal().
|
protectedvirtualinherited |
ADD DOCUMENTATION HERE.
Definition at line 526 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::diag_covs_inv_etc, itpp::MOG_generic::full, itpp::MOG_generic::full_covs_inv, itpp::MOG_generic::log_det_etc, itpp::mean(), and itpp::MOG_generic::means.
Referenced by itpp::MOG_generic::lhood_internal(), itpp::MOG_generic::log_lhood_internal(), and itpp::MOG_generic::log_lhood_single_gaus().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 80 of file mog_diag.cpp.
References itpp::MOG_diag::c_log_weights, itpp::exp(), itpp::MOG_generic::K, itpp::log(), itpp::log_add(), itpp::MOG_diag::log_lhood_single_gaus_internal(), itpp::MOG_generic::log_max_K, itpp::MOG_generic::paranoid, and itpp::sum().
Referenced by itpp::MOG_diag::avg_log_lhood(), itpp::MOG_diag::log_lhood(), and itpp::MOG_diag::log_lhood_internal().
|
protectedvirtualinherited |
ADD DOCUMENTATION HERE.
Reimplemented from itpp::MOG_generic.
Definition at line 106 of file mog_diag.cpp.
References itpp::MOG_diag::log_lhood_internal().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 133 of file mog_diag.cpp.
References itpp::MOG_diag::c_log_weights, itpp::exp(), itpp::MOG_generic::K, itpp::log_add(), itpp::MOG_diag::log_lhood_single_gaus_internal(), itpp::MOG_generic::log_max_K, itpp::MOG_generic::paranoid, itpp::sum(), and itpp::trunc_exp().
Referenced by itpp::MOG_diag::lhood(), and itpp::MOG_diag::lhood_internal().
|
protectedvirtualinherited |
ADD DOCUMENTATION HERE.
Reimplemented from itpp::MOG_generic.
Definition at line 158 of file mog_diag.cpp.
References itpp::MOG_diag::lhood_internal().
|
protectedinherited |
Enable C style access to an Array of vectors (vec)
Definition at line 284 of file mog_diag.cpp.
References itpp::Array< T >::size().
Referenced by itpp::MOG_diag_EM_sup::ml(), run(), itpp::MOG_diag::setup_covs(), itpp::MOG_diag::setup_means(), itpp::MOG_diag::setup_misc(), and itpp::MOG_diag::setup_weights().
|
protectedinherited |
Enable C style access to an Array of vectors (ivec)
Definition at line 292 of file mog_diag.cpp.
References itpp::Array< T >::size().
|
protectedinherited |
Enable C style access to a vector (vec)
Definition at line 303 of file mog_diag.cpp.
|
protectedinherited |
Enable C style access to a vector (ivec)
Definition at line 304 of file mog_diag.cpp.
|
protectedinherited |
Disable C style access to an Array of vectors (vec)
Definition at line 300 of file mog_diag.cpp.
Referenced by itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag_EM_sup::ml(), run(), itpp::MOG_diag::setup_covs(), itpp::MOG_diag::setup_means(), itpp::MOG_diag::setup_misc(), and itpp::MOG_diag::setup_weights().
|
protectedinherited |
Disable C style access to an Array of vectors (ivec)
Definition at line 301 of file mog_diag.cpp.
|
protectedinherited |
Disable C style access to a vector (vec)
Definition at line 306 of file mog_diag.cpp.
|
protectedinherited |
Disable C style access to a vector (ivec)
Definition at line 307 of file mog_diag.cpp.
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 207 of file mog_diag.cpp.
References itpp::MOG_diag::c_diag_covs, itpp::MOG_diag::c_diag_covs_inv_etc, itpp::MOG_diag::c_log_det_etc, itpp::MOG_diag::c_log_weights, itpp::MOG_diag::c_means, and itpp::MOG_diag::c_weights.
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 219 of file mog_diag.cpp.
References itpp::MOG_diag::c_diag_covs, itpp::MOG_diag::c_diag_covs_inv_etc, itpp::MOG_diag::c_log_det_etc, itpp::MOG_diag::c_log_weights, itpp::MOG_diag::c_means, itpp::MOG_diag::c_weights, and itpp::MOG_diag::disable_c_access().
|
inherited |
Initialise the model to be empty.
Definition at line 43 of file mog_generic.cpp.
References itpp::MOG_generic::cleanup().
Referenced by itpp::MOG_generic::join(), itpp::MOG_generic::load(), itpp::MOG_diag_EM_sup::ml(), and run().
|
inherited |
initialise the model so that all Gaussians have zero mean and unit variance for all dimensions
K_in | Number of Gaussians |
D_in | Dimensionality |
full_in | If true, use full covariance matrices; if false, use diagonal covariance matrices. Default = false. |
Definition at line 46 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::do_checks, itpp::MOG_generic::full, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::paranoid, itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_generic::set_means_zero_internal(), itpp::MOG_generic::set_weights_uniform_internal(), itpp::MOG_generic::setup_misc(), and itpp::MOG_generic::valid.
|
inherited |
Initialise the model using user supplied mean vectors.
means_in | Array of mean vectors |
full_in | If true, use full covariance matrices; if false, use diagonal covariance matrices. Default = false. |
Definition at line 69 of file mog_generic.cpp.
References itpp::MOG_generic::check_array_uniformity(), itpp::MOG_generic::D, itpp::MOG_generic::do_checks, itpp::MOG_generic::full, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::paranoid, itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_generic::set_means(), itpp::MOG_generic::set_weights_uniform_internal(), itpp::MOG_generic::setup_misc(), itpp::Array< T >::size(), and itpp::MOG_generic::valid.
|
inherited |
Initialise the model using user supplied parameters (diagonal covariance version)
means_in | Array of mean vectors |
diag_covs_in | Array of vectors representing diagonal covariances |
weights_in | vector of weights |
Definition at line 89 of file mog_generic.cpp.
References itpp::MOG_generic::check_array_uniformity(), itpp::MOG_generic::D, itpp::MOG_generic::do_checks, itpp::MOG_generic::full, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::paranoid, itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_means_internal(), itpp::MOG_generic::set_weights_internal(), itpp::MOG_generic::setup_misc(), itpp::Array< T >::size(), and itpp::MOG_generic::valid.
|
inherited |
Initialise the model using user supplied parameters (full covariance version)
means_in | Array of mean vectors |
full_covs_in | Array of covariance matrices |
weights_in | vector of weights |
Definition at line 110 of file mog_generic.cpp.
References itpp::MOG_generic::check_array_uniformity(), itpp::MOG_generic::D, itpp::MOG_generic::do_checks, itpp::MOG_generic::full, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::paranoid, itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_means_internal(), itpp::MOG_generic::set_weights_internal(), itpp::MOG_generic::setup_misc(), itpp::Array< T >::size(), and itpp::MOG_generic::valid.
|
inlineinherited |
Returns true if the model's parameters are valid.
Definition at line 154 of file mog_generic.h.
Referenced by itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), and run().
|
inlineinherited |
Returns true if the model has full covariance matrices.
Definition at line 157 of file mog_generic.h.
References itpp::full().
Referenced by itpp::MOG_generic::join().
|
inlineinherited |
Return the number of Gaussians.
Definition at line 160 of file mog_generic.h.
Referenced by itpp::MOG_generic::join().
|
inlineinherited |
Return the dimensionality.
Definition at line 163 of file mog_generic.h.
Referenced by itpp::MOG_generic::join().
|
inlineinherited |
Obtain a copy of the weight vector.
Definition at line 166 of file mog_generic.h.
Referenced by itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), and run().
|
inlineinherited |
Obtain a copy of the array of mean vectors.
Definition at line 169 of file mog_generic.h.
Referenced by itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), and run().
|
inlineinherited |
Obtain a copy of the array of diagonal covariance vectors.
Definition at line 172 of file mog_generic.h.
References itpp::full().
Referenced by itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), and run().
|
inlineinherited |
Obtain a copy of the array of full covariance matrices.
Definition at line 175 of file mog_generic.h.
References itpp::full().
Referenced by itpp::MOG_generic::join().
|
inherited |
Set the means of the model.
Definition at line 351 of file mog_generic.cpp.
References itpp::MOG_generic::set_means_internal(), and itpp::MOG_generic::valid.
Referenced by itpp::MOG_generic::init().
|
inherited |
Set the diagonal covariance vectors of the model.
Definition at line 365 of file mog_generic.cpp.
References itpp::MOG_generic::set_diag_covs_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set the full covariance matrices of the model.
Definition at line 372 of file mog_generic.cpp.
References itpp::MOG_generic::set_full_covs_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set the weight vector of the model.
Definition at line 379 of file mog_generic.cpp.
References itpp::MOG_generic::set_weights_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set the means in the model to be zero.
Definition at line 358 of file mog_generic.cpp.
References itpp::MOG_generic::set_means_zero_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set the diagonal covariance vectors to be unity.
Definition at line 386 of file mog_generic.cpp.
References itpp::MOG_generic::set_diag_covs_unity_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set the full covariance matrices to be unity.
Definition at line 393 of file mog_generic.cpp.
References itpp::MOG_generic::set_full_covs_unity_internal(), and itpp::MOG_generic::valid.
|
inherited |
Set all the weights to 1/K, where K is the number of Gaussians.
Definition at line 400 of file mog_generic.cpp.
References itpp::MOG_generic::set_weights_uniform_internal(), and itpp::MOG_generic::valid.
|
inlineinherited |
Enable/disable internal checks for likelihood functions.
do_checks_in | If true, checks are enabled; if false, checks are disabled |
Definition at line 214 of file mog_generic.h.
|
inlineinherited |
Enable/disable paranoia about numerical stability.
paranoid_in | If true, calculate likelihoods using a safer, but slower method. |
Definition at line 219 of file mog_generic.h.
|
virtualinherited |
Save the model's parameters to a model file.
name_in | The model's filename |
Definition at line 438 of file mog_generic.cpp.
References itpp::it_file::close(), itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::means, itpp::MOG_generic::valid, and itpp::MOG_generic::weights.
|
virtualinherited |
Mathematically join the model with a user supplied model.
B_in | user supplied model |
See On transforming statistical models... for more information.
Definition at line 453 of file mog_generic.cpp.
References itpp::concat(), itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::get_D(), itpp::MOG_generic::get_diag_covs(), itpp::MOG_generic::get_full_covs(), itpp::MOG_generic::get_K(), itpp::MOG_generic::get_means(), itpp::MOG_generic::get_weights(), itpp::MOG_generic::init(), itpp::MOG_generic::is_full(), itpp::MOG_generic::is_valid(), it_assert, itpp::MOG_generic::K, itpp::MOG_generic::means, itpp::MOG_generic::valid, and itpp::MOG_generic::weights.
|
virtualinherited |
Convert the model to use diagonal covariances.
Definition at line 499 of file mog_generic.cpp.
References itpp::MOG_generic::convert_to_diag_internal(), and itpp::MOG_generic::valid.
Referenced by itpp::MOG_diag::load().
|
protectedinherited |
Check if vector x_in
has the same dimensionality as the model.
Definition at line 130 of file mog_generic.cpp.
References itpp::MOG_generic::D.
Referenced by itpp::MOG_diag::avg_log_lhood(), itpp::MOG_generic::avg_log_lhood(), itpp::MOG_generic::check_size(), itpp::MOG_diag::lhood(), itpp::MOG_generic::lhood(), itpp::MOG_diag::log_lhood(), itpp::MOG_generic::log_lhood(), itpp::MOG_generic::log_lhood_single_gaus(), itpp::MOG_diag::log_lhood_single_gaus(), and run().
|
protectedinherited |
Check if all vectors in Array X_in
have the same dimensionality as the model.
Definition at line 137 of file mog_generic.cpp.
References itpp::MOG_generic::check_array_uniformity(), and itpp::MOG_generic::check_size().
|
protectedinherited |
Check if all vectors in Array X_in
have the same dimensionality.
Definition at line 144 of file mog_generic.cpp.
References itpp::Array< T >::size(), and itpp::size().
Referenced by itpp::MOG_generic::check_size(), itpp::MOG_generic::init(), and itpp::MOG_diag_EM_sup::ml().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 164 of file mog_generic.cpp.
References itpp::MOG_generic::D, it_assert, itpp::MOG_generic::K, itpp::MOG_generic::means, itpp::MOG_generic::setup_means(), itpp::Array< T >::size(), and itpp::size().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_means().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 180 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, it_assert, itpp::MOG_generic::K, itpp::Array< T >::set_size(), itpp::MOG_generic::setup_covs(), itpp::Array< T >::size(), and itpp::size().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_diag_covs().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 200 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, it_assert, itpp::MOG_generic::K, itpp::Array< T >::set_size(), itpp::MOG_generic::setup_covs(), and itpp::Array< T >::size().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_full_covs().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 225 of file mog_generic.cpp.
References it_assert, itpp::MOG_generic::K, itpp::MOG_generic::setup_weights(), and itpp::MOG_generic::weights.
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_weights().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 156 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::K, itpp::MOG_generic::means, itpp::Array< T >::set_size(), and itpp::MOG_generic::setup_means().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_means_zero().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 241 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::K, itpp::Array< T >::set_size(), and itpp::MOG_generic::setup_covs().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_diag_covs_unity().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 253 of file mog_generic.cpp.
References itpp::MOG_generic::D, itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::K, itpp::Array< T >::set_size(), and itpp::MOG_generic::setup_covs().
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_full_covs_unity().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 269 of file mog_generic.cpp.
References itpp::MOG_generic::K, itpp::MOG_generic::setup_weights(), and itpp::MOG_generic::weights.
Referenced by itpp::MOG_generic::init(), and itpp::MOG_generic::set_weights_uniform().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 486 of file mog_generic.cpp.
References itpp::diag(), itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::K, itpp::Array< T >::set_size(), and itpp::MOG_generic::setup_covs().
Referenced by itpp::MOG_generic::convert_to_diag(), and itpp::MOG_diag::setup_misc().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 506 of file mog_generic.cpp.
References itpp::diag(), itpp::MOG_generic::diag_covs, itpp::MOG_generic::full, itpp::MOG_generic::full_covs, itpp::MOG_generic::K, itpp::Array< T >::set_size(), and itpp::MOG_generic::setup_covs().
Referenced by itpp::MOG_generic::convert_to_full().
|
protected |
Maximum number of iterations.
Definition at line 87 of file mog_diag_kmeans.h.
|
protected |
trust factor, where 0 <= trust <= 1.
Definition at line 92 of file mog_diag_kmeans.h.
Referenced by calc_covs(), calc_weights(), and run().
|
protected |
Whether we print the progress.
Definition at line 95 of file mog_diag_kmeans.h.
Referenced by dezombify_means(), iterate(), and run().
|
protected |
number of training vectors
Definition at line 98 of file mog_diag_kmeans.h.
Referenced by assign_to_means(), calc_weights(), initial_means(), normalise_vectors(), run(), and unnormalise_vectors().
|
protected |
'C' pointers to training vectors
Definition at line 101 of file mog_diag_kmeans.h.
Referenced by assign_to_means(), calc_covs(), dezombify_means(), initial_means(), normalise_vectors(), recalculate_means(), run(), and unnormalise_vectors().
|
protected |
means from the previous iteration, used to measure progress
Definition at line 104 of file mog_diag_kmeans.h.
Referenced by run().
|
protected |
'C' pointers to old means
Definition at line 107 of file mog_diag_kmeans.h.
Referenced by iterate(), measure_change(), and run().
|
protected |
contains indices of vectors assigned to each mean
Definition at line 110 of file mog_diag_kmeans.h.
Referenced by run().
|
protected |
'C' pointers to partition vectors
Definition at line 113 of file mog_diag_kmeans.h.
Referenced by assign_to_means(), calc_covs(), dezombify_means(), recalculate_means(), and run().
|
protected |
keeps a count of the number of vectors assigned to each mean
Definition at line 116 of file mog_diag_kmeans.h.
Referenced by assign_to_means(), dezombify_means(), and run().
|
protected |
'C' pointer to the count vector
Definition at line 119 of file mog_diag_kmeans.h.
Referenced by assign_to_means(), calc_covs(), calc_weights(), dezombify_means(), recalculate_means(), and run().
|
protectedinherited |
pointers to the mean vectors
Definition at line 197 of file mog_diag.h.
Referenced by assign_to_means(), calc_covs(), dezombify_means(), itpp::MOG_diag::free_all_ptrs(), initial_means(), iterate(), itpp::MOG_diag::log_lhood_single_gaus_internal(), measure_change(), itpp::MOG_diag_EM_sup::ml_update_params(), recalculate_means(), itpp::MOG_diag::setup_means(), unnormalise_means(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
pointers to the covariance vectors
Definition at line 200 of file mog_diag.h.
Referenced by calc_covs(), itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag_EM_sup::ml_update_params(), itpp::MOG_diag_EM_sup::sanitise_params(), itpp::MOG_diag::setup_covs(), itpp::MOG_diag_EM_sup::update_internals(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
pointers to the inverted covariance vectors
Definition at line 203 of file mog_diag.h.
Referenced by itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag::log_lhood_single_gaus_internal(), itpp::MOG_diag::setup_covs(), itpp::MOG_diag_EM_sup::update_internals(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
pointer to the weight vector
Definition at line 206 of file mog_diag.h.
Referenced by calc_weights(), itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag_EM_sup::ml_update_params(), itpp::MOG_diag_EM_sup::sanitise_params(), itpp::MOG_diag::setup_weights(), itpp::MOG_diag_EM_sup::update_internals(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
pointer to the log version of the weight vector
Definition at line 209 of file mog_diag.h.
Referenced by itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag::lhood_internal(), itpp::MOG_diag::log_lhood_internal(), itpp::MOG_diag_EM_sup::ml_update_params(), itpp::MOG_diag::setup_weights(), itpp::MOG_diag_EM_sup::update_internals(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
pointer to the log_det_etc vector
Definition at line 212 of file mog_diag.h.
Referenced by itpp::MOG_diag::free_all_ptrs(), itpp::MOG_diag::log_lhood_single_gaus_internal(), itpp::MOG_diag::setup_covs(), itpp::MOG_diag_EM_sup::update_internals(), and itpp::MOG_diag::zero_all_ptrs().
|
protectedinherited |
indicates whether checks on input data are done
Definition at line 280 of file mog_generic.h.
Referenced by itpp::MOG_generic::avg_log_lhood(), itpp::MOG_diag::avg_log_lhood(), itpp::MOG_generic::cleanup(), itpp::MOG_generic::init(), itpp::MOG_diag::lhood(), itpp::MOG_generic::lhood(), itpp::MOG_diag::log_lhood(), itpp::MOG_generic::log_lhood(), itpp::MOG_diag::log_lhood_single_gaus(), and itpp::MOG_generic::log_lhood_single_gaus().
|
protectedinherited |
indicates whether the parameters are valid
Definition at line 283 of file mog_generic.h.
Referenced by itpp::MOG_generic::avg_log_lhood(), itpp::MOG_diag::avg_log_lhood(), itpp::MOG_generic::cleanup(), itpp::MOG_generic::convert_to_diag(), itpp::MOG_generic::convert_to_full(), itpp::MOG_generic::init(), itpp::MOG_generic::join(), itpp::MOG_diag::lhood(), itpp::MOG_generic::lhood(), itpp::MOG_generic::load(), itpp::MOG_diag::log_lhood(), itpp::MOG_generic::log_lhood(), itpp::MOG_diag::log_lhood_single_gaus(), itpp::MOG_generic::log_lhood_single_gaus(), itpp::MOG_generic::save(), itpp::MOG_generic::set_diag_covs(), itpp::MOG_generic::set_diag_covs_unity(), itpp::MOG_generic::set_full_covs(), itpp::MOG_generic::set_full_covs_unity(), itpp::MOG_generic::set_means(), itpp::MOG_generic::set_means_zero(), itpp::MOG_generic::set_weights(), and itpp::MOG_generic::set_weights_uniform().
|
protectedinherited |
indicates whether we are using full or diagonal covariance matrices
Definition at line 286 of file mog_generic.h.
Referenced by itpp::MOG_generic::convert_to_diag_internal(), itpp::MOG_generic::convert_to_full_internal(), itpp::MOG_generic::init(), itpp::MOG_generic::join(), itpp::MOG_diag::load(), itpp::MOG_generic::log_lhood_single_gaus_internal(), itpp::MOG_generic::save(), itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_diag::setup_covs(), itpp::MOG_generic::setup_covs(), and itpp::MOG_diag::setup_misc().
|
protectedinherited |
indicates whether we are paranoid about numerical stability
Definition at line 289 of file mog_generic.h.
Referenced by itpp::MOG_generic::init(), itpp::MOG_diag::lhood_internal(), itpp::MOG_generic::lhood_internal(), itpp::MOG_diag::log_lhood_internal(), itpp::MOG_generic::log_lhood_internal(), and itpp::MOG_diag_EM_sup::ml_update_params().
|
protectedinherited |
number of gaussians
Definition at line 292 of file mog_generic.h.
Referenced by assign_to_means(), calc_covs(), calc_weights(), itpp::MOG_generic::cleanup(), itpp::MOG_generic::convert_to_diag_internal(), itpp::MOG_generic::convert_to_full_internal(), dezombify_means(), itpp::MOG_generic::init(), initial_means(), iterate(), itpp::MOG_generic::join(), itpp::MOG_diag::lhood_internal(), itpp::MOG_generic::lhood_internal(), itpp::MOG_diag::log_lhood_internal(), itpp::MOG_generic::log_lhood_internal(), itpp::MOG_diag::log_lhood_single_gaus(), itpp::MOG_generic::log_lhood_single_gaus(), measure_change(), itpp::MOG_diag_EM_sup::ml(), itpp::MOG_diag_EM_sup::ml_update_params(), recalculate_means(), run(), itpp::MOG_diag_EM_sup::sanitise_params(), itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_generic::set_means_internal(), itpp::MOG_generic::set_means_zero_internal(), itpp::MOG_generic::set_weights_internal(), itpp::MOG_generic::set_weights_uniform_internal(), itpp::MOG_generic::setup_covs(), itpp::MOG_diag::setup_misc(), itpp::MOG_generic::setup_misc(), unnormalise_means(), and itpp::MOG_diag_EM_sup::update_internals().
|
protectedinherited |
dimensionality
Definition at line 295 of file mog_generic.h.
Referenced by calc_covs(), itpp::MOG_generic::check_size(), itpp::MOG_generic::cleanup(), dezombify_means(), dist(), itpp::MOG_generic::init(), initial_means(), iterate(), itpp::MOG_generic::join(), itpp::MOG_diag::log_lhood_single_gaus_internal(), itpp::MOG_generic::log_lhood_single_gaus_internal(), itpp::MOG_diag_EM_sup::ml(), itpp::MOG_diag_EM_sup::ml_update_params(), normalise_vectors(), recalculate_means(), run(), itpp::MOG_diag_EM_sup::sanitise_params(), itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_generic::set_means_internal(), itpp::MOG_generic::set_means_zero_internal(), itpp::MOG_generic::setup_covs(), itpp::MOG_generic::setup_misc(), unnormalise_means(), unnormalise_vectors(), and itpp::MOG_diag_EM_sup::update_internals().
|
protectedinherited |
means
Definition at line 298 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::join(), itpp::MOG_generic::log_lhood_single_gaus_internal(), itpp::MOG_diag_EM_sup::ml(), run(), itpp::MOG_generic::save(), itpp::MOG_generic::set_means_internal(), itpp::MOG_generic::set_means_zero_internal(), and itpp::MOG_diag::setup_means().
|
protectedinherited |
diagonal covariance matrices, stored as vectors
Definition at line 301 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::convert_to_diag_internal(), itpp::MOG_generic::convert_to_full_internal(), itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), run(), itpp::MOG_generic::save(), itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), itpp::MOG_diag::setup_covs(), and itpp::MOG_generic::setup_covs().
|
protectedinherited |
full covariance matrices
Definition at line 304 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::convert_to_diag_internal(), itpp::MOG_generic::convert_to_full_internal(), itpp::MOG_generic::join(), itpp::MOG_generic::save(), itpp::MOG_generic::set_diag_covs_internal(), itpp::MOG_generic::set_diag_covs_unity_internal(), itpp::MOG_generic::set_full_covs_internal(), itpp::MOG_generic::set_full_covs_unity_internal(), and itpp::MOG_generic::setup_covs().
|
protectedinherited |
weights
Definition at line 307 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::join(), itpp::MOG_diag_EM_sup::ml(), run(), itpp::MOG_generic::save(), itpp::MOG_generic::set_weights_internal(), itpp::MOG_generic::set_weights_uniform_internal(), itpp::MOG_diag::setup_weights(), and itpp::MOG_generic::setup_weights().
|
protectedinherited |
Pre-calcualted std::log(std::numeric_limits<double>::max() / K), where K is the number of Gaussians.
Definition at line 310 of file mog_generic.h.
Referenced by itpp::MOG_diag::lhood_internal(), itpp::MOG_generic::lhood_internal(), itpp::MOG_diag::log_lhood_internal(), itpp::MOG_generic::log_lhood_internal(), itpp::MOG_diag_EM_sup::ml_update_params(), and itpp::MOG_generic::setup_misc().
|
protectedinherited |
Gaussian specific pre-calcualted constants.
Definition at line 317 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::log_lhood_single_gaus_internal(), itpp::MOG_diag::setup_covs(), and itpp::MOG_generic::setup_covs().
|
protectedinherited |
Pre-calculated log versions of the weights.
Definition at line 320 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::lhood_internal(), itpp::MOG_generic::log_lhood_internal(), itpp::MOG_diag::setup_weights(), and itpp::MOG_generic::setup_weights().
|
protectedinherited |
Pre-calcuated inverted version of each full covariance matrix.
Definition at line 323 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::log_lhood_single_gaus_internal(), and itpp::MOG_generic::setup_covs().
|
protectedinherited |
Pre-calcuated inverted version of each diagonal covariance vector, where the covariance elements are first multiplied by two.
Definition at line 326 of file mog_generic.h.
Referenced by itpp::MOG_generic::cleanup(), itpp::MOG_generic::log_lhood_single_gaus_internal(), itpp::MOG_diag::setup_covs(), and itpp::MOG_generic::setup_covs().
Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.9.4