Description Usage Arguments Value
View source: R/gibbs_crp_gmm1d.R
Gibbs sampling for the Gaussian Dirichlet process mixture model.
1 | DpmmGibbs(x, alpha, tau0, beta0, mu0, kappa0, nIter)
|
x |
data (vector of length N). |
alpha |
DP concentration parameter. |
tau0 |
normal-gamma prior shape. |
beta0 |
normal-gamma prior rate (inverse scale). |
kappa0 |
normal-gamma prior precision scaling parameter. |
nIter |
number of Gibbs iterations. |
C N x nIter matrix of cluster assignments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.