GMM (Gaussian Mixture Models (GMM)) More...
#include "kmeans.h"

Go to the source code of this file.
Typedefs | |
| typedef struct _VlGMM | VlGMM |
| typedef enum _VlGMMInitialization | VlGMMInitialization |
| GMM initialization algorithms. | |
Enumerations | |
| enum | _VlGMMInitialization { VlGMMKMeans, VlGMMRand, VlGMMCustom } |
| GMM initialization algorithms. More... | |
Functions | |
| VL_EXPORT double | vl_get_gmm_data_posteriors_d (double *posteriors, vl_size numClusters, vl_size numData, double const *priors, double const *means, vl_size dimension, double const *covariances, double const *data) |
| VL_EXPORT double | vl_get_gmm_data_posteriors_f (float *posteriors, vl_size numClusters, vl_size numData, float const *priors, float const *means, vl_size dimension, float const *covariances, float const *data) |
| VL_EXPORT void | vl_gmm_set_covariances (VlGMM *self, void const *covariances) |
| VL_EXPORT void | vl_gmm_set_means (VlGMM *self, void const *means) |
| VL_EXPORT void | vl_gmm_set_priors (VlGMM *self, void const *priors) |
Create and destroy | |
| VL_EXPORT VlGMM * | vl_gmm_new (vl_type dataType, vl_size dimension, vl_size numComponents) |
| Create a new GMM object. | |
| VL_EXPORT VlGMM * | vl_gmm_new_copy (VlGMM const *gmm) |
| VL_EXPORT void | vl_gmm_delete (VlGMM *self) |
| Deletes a GMM object. | |
| VL_EXPORT void | vl_gmm_reset (VlGMM *self) |
| Reset state. | |
Basic data processing | |
| VL_EXPORT double | vl_gmm_cluster (VlGMM *self, void const *data, vl_size numData) |
Fine grained data processing | |
| VL_EXPORT void | vl_gmm_init_with_rand_data (VlGMM *self, void const *data, vl_size numData) |
| VL_EXPORT void | vl_gmm_init_with_kmeans (VlGMM *self, void const *data, vl_size numData, VlKMeans *kmeansInit) |
| VL_EXPORT double | vl_gmm_em (VlGMM *self, void const *data, vl_size numData) |
Set parameters | |
| VL_EXPORT void | vl_gmm_set_num_repetitions (VlGMM *self, vl_size numRepetitions) |
| Set maximum number of repetitions. | |
| VL_EXPORT void | vl_gmm_set_max_num_iterations (VlGMM *self, vl_size maxNumIterations) |
| Set maximum number of iterations. | |
| VL_EXPORT void | vl_gmm_set_verbosity (VlGMM *self, int verbosity) |
| Set verbosity level. | |
| VL_EXPORT void | vl_gmm_set_initialization (VlGMM *self, VlGMMInitialization init) |
| Set initialization algorithm. | |
| VL_EXPORT void | vl_gmm_set_kmeans_init_object (VlGMM *self, VlKMeans *kmeans) |
| Set KMeans initialization object. | |
| VL_EXPORT void | vl_gmm_set_covariance_lower_bounds (VlGMM *self, double const *bounds) |
| Set the lower bounds on diagonal covariance values. | |
| VL_EXPORT void | vl_gmm_set_covariance_lower_bound (VlGMM *self, double bound) |
| Set the lower bounds on diagonal covariance values. | |
Get parameters | |
| VL_EXPORT void const * | vl_gmm_get_means (VlGMM const *self) |
| Get means. | |
| VL_EXPORT void const * | vl_gmm_get_covariances (VlGMM const *self) |
| Get covariances. | |
| VL_EXPORT void const * | vl_gmm_get_priors (VlGMM const *self) |
| Get priors. | |
| VL_EXPORT void const * | vl_gmm_get_posteriors (VlGMM const *self) |
| Get posteriors. | |
| VL_EXPORT vl_type | vl_gmm_get_data_type (VlGMM const *self) |
| Get data type. | |
| VL_EXPORT vl_size | vl_gmm_get_dimension (VlGMM const *self) |
| Get data dimension. | |
| VL_EXPORT vl_size | vl_gmm_get_num_repetitions (VlGMM const *self) |
| Get maximum number of repetitions. | |
| VL_EXPORT vl_size | vl_gmm_get_num_data (VlGMM const *self) |
| Get the number of data points. | |
| VL_EXPORT vl_size | vl_gmm_get_num_clusters (VlGMM const *self) |
| Get the number of clusters. | |
| VL_EXPORT double | vl_gmm_get_loglikelihood (VlGMM const *self) |
| Get the log likelihood of the current mixture. | |
| VL_EXPORT int | vl_gmm_get_verbosity (VlGMM const *self) |
| Get verbosity level. | |
| VL_EXPORT vl_size | vl_gmm_get_max_num_iterations (VlGMM const *self) |
| Get maximum number of iterations. | |
| VL_EXPORT VlGMMInitialization | vl_gmm_get_initialization (VlGMM const *self) |
| Get initialization algorithm. | |
| VL_EXPORT VlKMeans * | vl_gmm_get_kmeans_init_object (VlGMM const *self) |
| Get KMeans initialization object. | |
| VL_EXPORT double const * | vl_gmm_get_covariance_lower_bounds (VlGMM const *self) |
| Get the lower bound on the diagonal covariance values. | |
GMM (Gaussian Mixture Models (GMM))
Definition in file gmm.h.
| typedef enum _VlGMMInitialization VlGMMInitialization |
GMM initialization algorithms.
| enum _VlGMMInitialization |
| VL_EXPORT double vl_get_gmm_data_posteriors_d | ( | double * | posteriors, |
| vl_size | numClusters, | ||
| vl_size | numData, | ||
| double const * | priors, | ||
| double const * | means, | ||
| vl_size | dimension, | ||
| double const * | covariances, | ||
| double const * | data | ||
| ) |
| VL_EXPORT double vl_get_gmm_data_posteriors_f | ( | float * | posteriors, |
| vl_size | numClusters, | ||
| vl_size | numData, | ||
| float const * | priors, | ||
| float const * | means, | ||
| vl_size | dimension, | ||
| float const * | covariances, | ||
| float const * | data | ||
| ) |
| VL_EXPORT double vl_gmm_cluster | ( | VlGMM * | self, |
| void const * | data, | ||
| vl_size | numData | ||
| ) |
| VL_EXPORT void vl_gmm_delete | ( | VlGMM * | self | ) |
Deletes a GMM object.
| self | GMM object instance. |
The function deletes the GMM object instance created by vl_gmm_new.
| VL_EXPORT double const* vl_gmm_get_covariance_lower_bounds | ( | VlGMM const * | self | ) |
| VL_EXPORT void const* vl_gmm_get_covariances | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_type vl_gmm_get_data_type | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_size vl_gmm_get_dimension | ( | VlGMM const * | self | ) |
| VL_EXPORT VlGMMInitialization vl_gmm_get_initialization | ( | VlGMM const * | self | ) |
| VL_EXPORT VlKMeans* vl_gmm_get_kmeans_init_object | ( | VlGMM const * | self | ) |
| VL_EXPORT double vl_gmm_get_loglikelihood | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_size vl_gmm_get_max_num_iterations | ( | VlGMM const * | self | ) |
| VL_EXPORT void const* vl_gmm_get_means | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_size vl_gmm_get_num_clusters | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_size vl_gmm_get_num_data | ( | VlGMM const * | self | ) |
| VL_EXPORT vl_size vl_gmm_get_num_repetitions | ( | VlGMM const * | self | ) |
| VL_EXPORT void const* vl_gmm_get_posteriors | ( | VlGMM const * | self | ) |
| VL_EXPORT void const* vl_gmm_get_priors | ( | VlGMM const * | self | ) |
| VL_EXPORT int vl_gmm_get_verbosity | ( | VlGMM const * | self | ) |
| VL_EXPORT void vl_gmm_init_with_kmeans | ( | VlGMM * | self, |
| void const * | data, | ||
| vl_size | numData, | ||
| VlKMeans * | kmeansInit | ||
| ) |
| VL_EXPORT void vl_gmm_init_with_rand_data | ( | VlGMM * | self, |
| void const * | data, | ||
| vl_size | numData | ||
| ) |
| VL_EXPORT VlGMM* vl_gmm_new | ( | vl_type | dataType, |
| vl_size | dimension, | ||
| vl_size | numComponents | ||
| ) |
Create a new GMM object.
| dataType | type of data (VL_TYPE_FLOAT or VL_TYPE_DOUBLE) |
| dimension | dimension of the data. |
| numComponents | number of Gaussian mixture components. |
| VL_EXPORT VlGMM* vl_gmm_new_copy | ( | VlGMM const * | gmm | ) |
| VL_EXPORT void vl_gmm_reset | ( | VlGMM * | self | ) |
| VL_EXPORT void vl_gmm_set_covariance_lower_bound | ( | VlGMM * | self, |
| double | bound | ||
| ) |
Set the lower bounds on diagonal covariance values.
| self | object. |
| bound | bound. |
While there is one lower bound per dimension, this function sets all of them to the specified scalar. Use vl_gmm_set_covariance_lower_bounds to set them individually.
| VL_EXPORT void vl_gmm_set_covariance_lower_bounds | ( | VlGMM * | self, |
| double const * | bounds | ||
| ) |
Set the lower bounds on diagonal covariance values.
| self | object. |
| bounds | bounds. |
There is one lower bound per dimension. Use vl_gmm_set_covariance_lower_bound to set all of them to a given scalar.
| VL_EXPORT void vl_gmm_set_covariances | ( | VlGMM * | self, |
| void const * | covariances | ||
| ) |
| VL_EXPORT void vl_gmm_set_initialization | ( | VlGMM * | self, |
| VlGMMInitialization | init | ||
| ) |
| VL_EXPORT void vl_gmm_set_kmeans_init_object | ( | VlGMM * | self, |
| VlKMeans * | kmeans | ||
| ) |
| VL_EXPORT void vl_gmm_set_max_num_iterations | ( | VlGMM * | self, |
| vl_size | maxNumIterations | ||
| ) |
| VL_EXPORT void vl_gmm_set_means | ( | VlGMM * | self, |
| void const * | means | ||
| ) |
| VL_EXPORT void vl_gmm_set_num_repetitions | ( | VlGMM * | self, |
| vl_size | numRepetitions | ||
| ) |
| VL_EXPORT void vl_gmm_set_priors | ( | VlGMM * | self, |
| void const * | priors | ||
| ) |
| VL_EXPORT void vl_gmm_set_verbosity | ( | VlGMM * | self, |
| int | verbosity | ||
| ) |