dirichletprocess (version 0.2.1)

ClusterComponentUpdate: Update the component of the Dirichlet process

Description

Update the cluster assignment for each data point.

Usage

ClusterComponentUpdate(dpObj)

Arguments

dpObj

Dirichlet Process object

Value

Dirichlet process object with update components.

Examples

Run this code
# NOT RUN {
dp <- DirichletProcessGaussian(rnorm(10))
dp <- ClusterComponentUpdate(dp)

# }

Run the code above in your browser using DataCamp Workspace