ClusterComponentUpdate: Update the component of the Dirichlet process

View source: R/cluster_component_update.R

ClusterComponentUpdateR Documentation

Update the component of the Dirichlet process

Description

Update the cluster assignment for each data point.

Usage

ClusterComponentUpdate(dpObj)

## S3 method for class 'conjugate'
ClusterComponentUpdate(dpObj)

## S3 method for class 'hierarchical'
ClusterComponentUpdate(dpObj)

Arguments

dpObj

Dirichlet Process object

Value

Dirichlet process object with update components.

Examples

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


dm13450/dirichletprocess documentation built on Sept. 1, 2023, 3:47 a.m.