rdirichlet: Generate dirichlet random deviates

View source: R/utils.R

rdirichletR Documentation

Generate dirichlet random deviates

Description

Generate dirichlet random deviates

Usage

rdirichlet(n, alpha)

Arguments

n

Number of random vectors to generate.

alpha

Vector containing shape parameters.

Value

a vector containing the Dirichlet density

Examples

dirichletExample <- rdirichlet(1, c(1, 2, 3))


microbiome/miaSim documentation built on Oct. 25, 2024, 7:16 p.m.