DirichletProcess — The Dirichlet process
distribution
Usage
DirichletProcess(n: Int, alpha: Double, dist: Distribution<a>) → Distribution<List<a>>
Arguments
-
n: -
The number of samples
-
alpha: -
The concentration parameter controlling how often new values are drawn
-
dist: -
The base distribution on shared values
Description
Draw n exchangeable samples from a Dirichlet process
with concentration alpha and base distribution
dist. Samples assigned to the same cluster share one value
drawn from dist.
Examples
~DirichletProcess(10, 1, Normal(0,1)) // Ten clustered normal values