dnScaledDirichlet - Scaled Dirichlet Distribution
| alpha : | RealPos[] (pass by const reference) |
| The concentration parameter. | |
| beta : | RealPos[] (pass by const reference) |
| The rate parameter. |
# lets get a draw from a Dirichlet distribution
a <- [1,1,1,1] # we could also use rep(1,4)
b <- [1,2,3,4] # if these are all equal, the scaled Dirichlet is equivilent to the Dirichlet(a)x ~ dnScaledDirichlet(a,b)
x
# let check if b really sums to 1
sum(x)