ClusterParameterUpdate: Update the cluster parameters of the Dirichlet process.

View source: R/cluster_parameter_update.R

ClusterParameterUpdateR Documentation

Update the cluster parameters of the Dirichlet process.

Description

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.

Usage

ClusterParameterUpdate(dpObj)

Arguments

dpObj

Dirichlet process object

Value

Dirichlet process object with update cluster parameters

Examples

dp <- DirichletProcessGaussian(rnorm(10))
dp <- ClusterParameterUpdate(dp)


dirichletprocess documentation built on Aug. 25, 2023, 5:19 p.m.