noparama  v0.0.1
Nonparametric Bayesian models
Public Member Functions | List of all members
InitClusters Class Reference

#include <np_init_clusters.h>

Public Member Functions

 InitClusters (random_engine_t &generator, distribution_t &nonparametrics)
 
void init (membertrix &cluster_matrix, int K)
 

Detailed Description

This class InitClusters initiates clusters using hyperparameters in the form of a non-parametric Bayesian prior.

Constructor & Destructor Documentation

◆ InitClusters()

InitClusters::InitClusters ( random_engine_t &  generator,
distribution_t &  nonparametrics 
)

Constructor for the InitClusters class.

Parameters
[in]nonparametricsSufficient statistics of the nonparametric prior (e.g. Dirichlet)

Member Function Documentation

◆ init()

void InitClusters::init ( membertrix cluster_matrix,
int  K 
)

Init all cluster parameters.

Parameters
[in,out]cluster_matrixCluster parameters that will be updated

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