A density function of mixed Gaussian distributions
whose density is:
$$\frac{0.3}{\sqrt{2 \pi 0.5^2}}
\exp\left(\frac{(x+1)^2}{2 \cdot 0.5^2}\right) +
\frac{0.7}{\sqrt{2 \pi 0.5^2}}
\exp\left(\frac{(x-1)^2}{2 \cdot 0.5^2}\right)$$.
Usage
mix2gauss_fun(x)
Arguments
x
A numeric vector for arguments of a density function.
Value
A numeric vector of probabilities for a given argument x.