hyperdirichlet (version 1.5-1)

uniform: A uniform Dirichlet distribution

Description

A uniform Dirichlet distribution

Usage

uniform(n, pnames=NULL)

Arguments

n
The dimension of the distribution
pnames
A character vector giving the names of the columns

Value

Returns a hyperdirichlet object corresponding to a uniform distribution

See Also

dirichlet

Examples

Run this code

uniform(4)

uniform(4) + dirichlet(1:4)   # identical (but the normalizing constant is lost)


# Two ways to do the same thing:
rhyperdirichlet(n=11, uniform(4))
t(replicate(11,diff(c(0,sort(runif(3)),1))))



Run the code above in your browser using DataCamp Workspace