dirichletrnd: Dirichlet generator

Description Usage Arguments Value Author(s) References Examples

Description

Random generation for the Dirichlet distribution

Usage

1
  dirichletrnd(a, n) 

Arguments

a

numeric vector for the concentration parameters

n

number of observations

Value

dirichletrnd generates n random observations from a Dirichlet distribution

Author(s)

Tim Benham, Qibin Duan, Dirk P. Kroese, Benoit Liquet

References

Kroese D.P., Taimre T., Botev Z.I. (2011), Handbook of Monte Carlo Methods, John Wiley & Sons.

Examples

1
2
3
4
5
6
7
8
9
## Generation from the Dirichlet distribution 
## with parameter a=(1,2,3,4,5)

set.seed(12345)
a <- 1:5
n <- 10

y <- dirichletrnd(a,n)
y


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

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

Please suggest features or report bugs with the GitHub issue tracker.

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