compositions (version 2.0-8)

runif: The uniform distribution on the simplex

Description

Generates random compositions with a uniform distribution on the (rcomp) simplex.

Usage

runif.acomp(n,D)
runif.rcomp(n,D)

Value

a generated random dataset of class "acomp" or "rcomp"

drawn from a uniform distribution on the simplex of D parts.

Arguments

n

number of datasets to be simulated

D

number of parts

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.

See Also

rDirichlet.acomp

Examples

Run this code
plot(runif.acomp(10,3))
plot(runif.rcomp(10,3))

Run the code above in your browser using DataLab