rDirichlet: rDirichlet

Description

samples from the Dirichlet distribution.

Usage

1
rDirichlet(K, alpha = 0.1)

Arguments

K

order of the sample.

alpha

alpha parameter of the distribution (i.e. alpha repeated K times).

Value

numeric vector, which values are in [0,1] and sum to 1.

Author(s)

Pierrick Bruneau

See Also

dDirichlet

Examples

1
temp <- rDirichlet(4)

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

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