rDirichlet: rDirichlet

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interfaces.R

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)

VBmix documentation built on May 30, 2017, 2:34 a.m.

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