|
Docs
|
LogLikelihood equal to 1 to ignore data contribution and focus on prior. More...
#include <Null_likelihood.hpp>
Public Member Functions | |
| Null_likelihood (const Data &data, const Params ¶m) | |
| double | cluster_loglikelihood (int cluster_index) const override final |
| Computes the full log-likelihood for a cluster. | |
| double | cluster_loglikelihood (int cluster_index, const Eigen::Ref< const Eigen::VectorXi > &cls_ass_k) const override final __attribute__((hot)) |
| Computes the full log-likelihood for a cluster with given assignments. | |
| double | point_loglikelihood_cond (int point_index, int cluster_index) const override final __attribute__((hot)) |
| Computes the conditional log-likelihood of a point given a cluster. | |
| Public Member Functions inherited from Likelihood | |
| Likelihood (const Data &data, const Params ¶m) | |
| virtual | ~Likelihood ()=default |
Additional Inherited Members | |
| Protected Attributes inherited from Likelihood | |
| const Data & | data |
| Reference to Data object with distances and allocations. | |
| const Params & | params |
| Reference to model parameters. | |
LogLikelihood equal to 1 to ignore data contribution and focus on prior.
|
inlinefinaloverridevirtual |
Computes the full log-likelihood for a cluster.
| cluster_index | Index of the cluster to evaluate |
This method computes both the within-cluster cohesion and the between-cluster repulsion contributions for the specified cluster.
Implements Likelihood.
|
inlinefinaloverridevirtual |
Computes the full 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 |
This overload allows computing the likelihood with a custom set of cluster assignments without modifying the data structure.
Implements Likelihood.
|
inlinefinaloverridevirtual |
Computes the conditional log-likelihood of a point given a cluster.
| point_index | Index of the point to evaluate |
| cluster_index | Index of the target cluster |
This method evaluates how well a point fits into a specific cluster, considering both its cohesion with points in that cluster and its repulsion from points in other clusters.
Implements Likelihood.