View source: R/simulation_functions.R
sample_gauss_mix | R Documentation |
N
is the number of samples to draw and th
specifies the Gaussian mixture
with the ordering (pi_1,...,pi_K,mu_1,...,mu_K,s_1,...,s_K), where K
is the
number of mixture components. Optionally, the samples are drawn on the
truncated interval tau_min
to tau_max
. Because of limitations in the
package distr
, the maximum number of mixture components suppored is K=4.
sample_gauss_mix(N, th, tau_min = NA, tau_max = NA)
N |
Number of samples |
th |
Parameterization vector for the Gaussian mixture |
tau_min |
(Optional) Lower bound for samples |
tau_max |
(Optional) Upper bound for samples |
N samples from the Gaussian mixture
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.