dirichletprocess (version 0.4.2)

ClusterComponentUpdate: Update the component of the Dirichlet process

Description

Update the cluster assignment for each data point.

Usage

ClusterComponentUpdate(dpObj)

# S3 method for conjugate ClusterComponentUpdate(dpObj)

# S3 method for hierarchical ClusterComponentUpdate(dpObj)

Value

Dirichlet process object with update components.

Arguments

dpObj

Dirichlet Process object

Examples

Run this code
dp <- DirichletProcessGaussian(rnorm(10))
dp <- ClusterComponentUpdate(dp)

Run the code above in your browser using DataLab