random_mixt_normal: Random Sampling of 1-dim. Mixtures of Normal Distribution

Description Usage Arguments Value

Description

Set sample size n and parameters of MixtNormal(mu,sigma,pi). By definition, dimension of mu, sigma and pi must be the same. In the function, parameter 'pi' is normalized.

Usage

1
random_mixt_normal(n, mu, sigma, ratio)

Arguments

n

<int scalar> : sample size

mu

<double vector> : population means

sigma

<double vector> : population sds

ratio

<double vector> : mixtured ratio

Value

The output will be <double vector> of size n that you input.


utaka233/mixturesb documentation built on May 30, 2019, 4:05 a.m.