rDirichlet

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.