powered by
Returns an DIRICHLET distribution object that draw random numbers generated by the function rdirichlet
DIRICHLET
rdirichlet
new_DIRICHLET(p_alpha, p_dimnames)
An object of class DISTRIBUTION,
DISTRIBUTION
p_distribution$distribution, TRUNCATED
p_distribution$distribution
TRUNCATED
k-value vector for concentration parameter. Must be positive
A vector of characters for the names of the k-dimensions
John J. Aponte
A name can be provided for the dimensions. Otherwise rvar1, rvar2, ..., rvark will be assigned
rvar1
rvar2
rvark
myDistr <- new_DIRICHLET(c(0.3,0.2,0.5), c("a","b","c")) myDistr$rfunc(10)
Run the code above in your browser using DataLab