rdirichlet {SBMSplitMerge}R Documentation

Dirichlet distribution

Description

Draw from Dirichlet distribution

Usage

rdirichlet(n, gam)

Arguments

n

number of variates to draw

gam

a vector of concentration parameters of length K

Value

matrix dimension n*k of samples

Examples

rdirichlet(1, rep(2,5)) ## a length-5 probability vector

[Package SBMSplitMerge version 1.1.1 Index]