uniform: A uniform Dirichlet distribution

Description Usage Arguments Value Author(s) See Also Examples

Description

A uniform Dirichlet distribution

Usage

1

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

Author(s)

Robin K. S. Hankin

See Also

dirichlet

Examples

1
2
3
4
5
6
7
8
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))))


Search within the hyperdirichlet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.