|
Docs
|
Abstract base class for likelihood computation. More...
#include <Likelihood.hpp>
Public Member Functions | |
| Likelihood (const Data &data, const Params ¶m) | |
| virtual double | cluster_loglikelihood (int cluster_index) const =0 |
| Computes the log-likelihood for a cluster. | |
| virtual double | cluster_loglikelihood (int cluster_index, const Eigen::Ref< const Eigen::VectorXi > &cls_ass_k) const =0 |
| Computes the log-likelihood for a cluster with given assignments. | |
| virtual double | point_loglikelihood_cond (int point_index, int cluster_index) const =0 |
| Conditional log-likelihood of a point in a particular cluster. | |
| virtual | ~Likelihood ()=default |
Protected Attributes | |
| const Data & | data |
| Reference to Data object with distances and allocations. | |
| const Params & | params |
| Reference to model parameters. | |
Abstract base class for likelihood computation.
This class defines the interface for computing likelihoods in clustering models. Derived classes must implement methods for computing both cluster-level and point-level conditional log-likelihoods, which are essential for Gibbs and split-merge MCMC algorithms.
|
virtualdefault |
|
pure virtual |
Computes the log-likelihood for a cluster.
| cluster_index | Index of the cluster to evaluate |
Implemented in Gamma_likelihood, Natarajan_likelihood, Natarajan_likelihood_summaryStats, and Null_likelihood.
|
pure virtual |
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 |
Implemented in Gamma_likelihood, Natarajan_likelihood, Natarajan_likelihood_summaryStats, and Null_likelihood.
|
pure virtual |
Conditional log-likelihood of a point in a particular cluster.
| point_index | Index of the point to evaluate |
| cluster_index | Index of the cluster |
Implemented in Gamma_likelihood, Natarajan_likelihood, Natarajan_likelihood_summaryStats, and Null_likelihood.
|
protected |
Reference to model parameters.