View source: R/cluster_parameter_update.R
ClusterParameterUpdate | R Documentation |
Update the parameters of each individual cluster using all the data assigned to the particular cluster. A sample is taken from the posterior distribution using a direct sample if the mixing distribution is conjugate or the Metropolis Hastings algorithm for non-conjugate mixtures.
ClusterParameterUpdate(dpObj)
dpObj |
Dirichlet process object |
Dirichlet process object with update cluster parameters
dp <- DirichletProcessGaussian(rnorm(10))
dp <- ClusterParameterUpdate(dp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.