Learn R Programming

drape (version 0.0.2)

rmixture: Symmetric mixture two Gaussian random variables.

Description

The resulting distribution is mean zero, variance one. X ~ N(-sqrt(1-sd^2),sd^2) wp 0.5, N(sqrt(1-sd^2),sd^2) wp 0.5.

Usage

rmixture(n, sd)

Value

vector of length n

Arguments

n

number of observations.

sd

standard deviation of each Gaussian.