dnDirichlet
- Dirichlet Distribution
alpha : | RealPos[] (pass by const reference) |
The concentration parameter. |
# lets get a draw from a Dirichlet distribution
a <- [1,1,1,1] # we could also use rep(1,4)
b ~ dnDirichlet(a)
b
# let check if b really sums to 1
sum(b)