uniform {hyperdirichlet} | R Documentation |
A uniform Dirichlet distribution
uniform(n, pnames=NULL)
n |
The dimension of the distribution |
pnames |
A character vector giving the names of the columns |
Robin K. S. Hankin
uniform(4) uniform(4) + dirichlet(1:4) # identical (but the normalizing constant is lost) # Two ways to do the same thing: rhyperdirichlet(uniform(4),n=11) t(replicate(11,diff(c(0,sort(runif(3)),1))))