View source: R/ACutils_export.R
rmix | R Documentation |
function to extract a random sample of dimension n from a Gaussian mixture defined by the 3 vectors p, mu, sigma (that must have same length!)
rmix(n, p, mu, sigma)
n |
dimension of the random sample that has to be extracted |
p |
vector of weights for the components of the mixture |
mu |
vector of means for the components |
sigma |
vector of standard deviations for the components |
random sample derived my the specified mixture
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.