DIRICHLET: Factory for a DIRICHLET distribution object

Description Usage Arguments Details Value Author(s) Examples

Description

Returns an DIRICHLET distribution object that draw random numbers generated by the function rdirichlet

Usage

1
new_DIRICHLET(p_alpha, p_dimnames)

Arguments

p_alpha

k-value vector for concentration parameter. Must be positive

p_dimnames

A vector of characters for the names of the k-dimensions

Details

A name can be provided for the dimensions. Otherwise rvar1, rvar2, ..., rvark will be assigned

Value

An object of class DISTRIBUTION, p_distribution$distribution, TRUNCATED

Author(s)

John J. Aponte

Examples

1
2
myDistr <- new_DIRICHLET(c(0.3,0.2,0.5), c("a","b","c"))
myDistr$rfunc(10)

convdistr documentation built on April 20, 2021, 9:06 a.m.