update_w: Update w in Gibbs sampling

Description Usage Arguments Value Examples

Description

Update w in Gibbs sampling

Usage

1
update_w(mu, s, delta = 1)

Arguments

s

a vector with one entry per observed data point of cluster assignments

delta

a scalar hyperparameter for dirichlet

Value

w a weight vector of length $K$

Examples

1
update_w(1:4, c(1,1,2,2,3,3))

fboehm/xu2015 documentation built on May 16, 2019, noon