A random number generator whose density function is
proportional to:
$$\exp(\frac{x^2}{2}) + 5\exp(\frac{(x-1)^2}{0.2}) +
3\exp(\frac{(x-1)^2}{0.5}).$$
Usage
mix3gauss_gen(n = 100, seed = NULL)
Arguments
- n
The number of random numbers.
- seed
A seed for random number generator.
Value
A numeric vector of probabilities for a given argument x
.