|
Docs
|
#include <GaussianMixtureModel_likelihood.hpp>
Classes | |
| struct | ClusterStats |
Public Member Functions | |
| GaussianMixtureModel_likelihood (const Data &data, const GaussianMixtureModel_params ¶ms) | |
| ~GaussianMixtureModel_likelihood ()=default | |
| double | cluster_loglikelihood (int cluster_index) const override |
| Computes the log-likelihood for a cluster. | |
| double | cluster_loglikelihood (int cluster_index, const Eigen::Ref< const Eigen::VectorXi > &cluster_areas) const override |
| Computes the log-likelihood for a cluster with given assignments. | |
| double | point_loglikelihood_cond (int point_index, int cluster_index) const override |
| Conditional log-likelihood of a point in a particular cluster. | |
| Public Member Functions inherited from Likelihood | |
| Likelihood (const Data &data) | |
| virtual double | clusters_loglikelihood (int c1, int c2) const |
| Computes the joint log-likelihood for two clusters. | |
| virtual | ~Likelihood ()=default |
Private Member Functions | |
| ClusterStats | compute_stats (const Eigen::Ref< const Eigen::VectorXi > &cluster_areas) const |
| ClusterStats | compute_area_stats (int area_index) const |
| double | log_marginal_likelihood (const ClusterStats &stats) const |
| double | log_predictive_from_stats (const ClusterStats &stats, const ClusterStats &area_stats) const |
Private Attributes | |
| const GaussianMixtureModel_params & | params |
| const double | log_2pi |
| const double | lgamma_alpha0 |
Additional Inherited Members | |
| Protected Attributes inherited from Likelihood | |
| const Data & | data |
| Reference to Data object with distances and allocations. | |
| GaussianMixtureModel_likelihood::GaussianMixtureModel_likelihood | ( | const Data & | data, |
| const GaussianMixtureModel_params & | params ) |
|
default |
|
overridevirtual |
Computes the log-likelihood for a cluster.
| cluster_index | Index of the cluster to evaluate |
Implements Likelihood.
|
overridevirtual |
Computes the log-likelihood for a cluster with given assignments.
| cluster_index | Index of the cluster to evaluate |
| cls_ass_k | Vector of point indices in the cluster |
Implements Likelihood.
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Conditional log-likelihood of a point in a particular cluster.
| point_index | Index of the point to evaluate |
| cluster_index | Index of the cluster |
Implements Likelihood.
|
private |
|
private |
|
private |