Update the cluster assignment for each data point.

ClusterComponentUpdate(dpObj)

# S3 method for conjugate
ClusterComponentUpdate(dpObj)

# S3 method for hierarchical
ClusterComponentUpdate(dpObj)

Arguments

dpObj

Dirichlet Process object

Value

Dirichlet process object with update components.

Examples

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