rdirichlet {lazy.stat}R Documentation

Dirichlet Random Numbers

Description

Dirichlet Random Numbers

Usage

rdirichlet(n, alpha)

Arguments

n

# of random numbers to be generated

alpha

vector of parameters of length(alpha) >= 2.

Details

Beta( a, b ) is equivalent of Dirichlet( c( a, b ) ).

Value

vector of length length(alpha)

Examples

set.seed(1701)
x <- rdirichlet( 10000, c(3,4,2) )
mandd(x)

[Package lazy.stat version 0.1.4 Index]