noparama  v0.0.1
Nonparametric Bayesian models
Public Member Functions | Protected Attributes | List of all members
UpdateClusterPopulation Class Referenceabstract

#include <np_update_cluster_population.h>

Inheritance diagram for UpdateClusterPopulation:
Inheritance graph
[legend]

Public Member Functions

 UpdateClusterPopulation ()
 
virtual ~UpdateClusterPopulation ()
 
virtual void update (membertrix &cluster_matrix, const data_ids_t &data_ids)=0
 
virtual void printStatistics ()=0
 

Protected Attributes

std::default_random_engine _generator
 
std::uniform_real_distribution< double > _distribution
 
char _verbosity
 

Detailed Description

This class UpdateClusterPopulation deletes, adds, and adjusts clusters. This in contrast with UpdateCluster which only adjusts the parameters assigned to a cluster and will leave the number of clusters invariant.

Constructor & Destructor Documentation

◆ UpdateClusterPopulation()

UpdateClusterPopulation::UpdateClusterPopulation ( )
inline

◆ ~UpdateClusterPopulation()

virtual UpdateClusterPopulation::~UpdateClusterPopulation ( )
inlinevirtual

Member Function Documentation

◆ printStatistics()

virtual void UpdateClusterPopulation::printStatistics ( )
pure virtual

MCMC statistics. How many times are steps rejected, etc.

Implemented in JainNealAlgorithm, TriadicAlgorithm, NealAlgorithm2, and NealAlgorithm8.

◆ update()

virtual void UpdateClusterPopulation::update ( membertrix cluster_matrix,
const data_ids_t data_ids 
)
pure virtual

Update the cluster population. The observation has to be deleted beforehand.

Parameters
[in,out]cluster_matrixCluster-observation membership matrix
[in]data_idsObservations to be considered for existing and new cluster

Implemented in JainNealAlgorithm, TriadicAlgorithm, NealAlgorithm2, and NealAlgorithm8.

Member Data Documentation

◆ _distribution

std::uniform_real_distribution<double> UpdateClusterPopulation::_distribution
protected

◆ _generator

std::default_random_engine UpdateClusterPopulation::_generator
protected

◆ _verbosity

char UpdateClusterPopulation::_verbosity
protected

The documentation for this class was generated from the following file: