rDPM: Draw from Dirichlet process mixture model

View source: R/main.R

rDPMR Documentation

Draw from Dirichlet process mixture model

Description

Draw a series of point from the d-dimensional Dirichlet process with normal prior and normal mixture components.

Usage

rDPM(n, alpha = 1, d = 1, tau = 10, sigma = 1)

Arguments

n

the number of random draws.

alpha

the concentration parameter of the process.

d

the number of dimensions.

tau

the standard deviation of the symmetric normal prior on component means.

sigma

the standard deviation of the symmetric normal mixture distribution. Equal for all components.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.