Description Usage Arguments Value Examples
Generate a sample from a two Gaussian mixture
1 | gen_two_gaussian_mixture(n, p1, mu1, s1, mu2, s2, rn_seed = 42)
|
n |
- the number of samples to generate |
p1 |
- the fractional probability of the first Gaussian (< 1.0) |
mu1 |
- the mean of the first Gaussian |
s1 |
- the standard deviation of the first Gaussian |
mu2 |
- the mean of the second Gaussian |
s2 |
- the standard deviation of the second Gaussian |
rn_seed |
- the random number seed (default 42) |
rand.samples - a vector of n samples
1 2 | library(particlesizeR)
samples <- gen_two_gaussian_mixture(10000, 0.5, 0.5, 1.0, 10.0, 3.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.