|
noparama
v0.0.1
Nonparametric Bayesian models
|
#include <np_init_clusters.h>
Public Member Functions | |
| InitClusters (random_engine_t &generator, distribution_t &nonparametrics) | |
| void | init (membertrix &cluster_matrix, int K) |
This class InitClusters initiates clusters using hyperparameters in the form of a non-parametric Bayesian prior.
| InitClusters::InitClusters | ( | random_engine_t & | generator, |
| distribution_t & | nonparametrics | ||
| ) |
Constructor for the InitClusters class.
| [in] | nonparametrics | Sufficient statistics of the nonparametric prior (e.g. Dirichlet) |
| void InitClusters::init | ( | membertrix & | cluster_matrix, |
| int | K | ||
| ) |
Init all cluster parameters.
| [in,out] | cluster_matrix | Cluster parameters that will be updated |
1.8.13