rmix_norm | R Documentation |
Simulate exactly a mixture Gaussian distribution using component sampling
rmix_norm(N, weights, means, sds)
weights |
vector: weights of mixture Gaussian |
means |
vector: means of mixture Gassuan |
sds |
vector: st.devs of mixture Gaussian |
n |
number of samples required |
samples from a mixture Gaussian distribution
rmix_norm(N = 10000, weights = c(0.4, 0.6), means = c(-3, 9), sds = c(2, 0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.