Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


bacon (version 1.0.4)

rnormmix: sample from a normal mixture

Description

sample from a normal mixture

Usage

rnormmix(n, theta)

Arguments

n
size
theta
parameters

Value

n samples from a normal mixture with parameters theta

Details

details follow

Examples

Run this code
n <- 2000
theta <- c(0.8, 0, 1, 0, 4, 1)
x <- rnormmix(n, theta)

Run the code above in your browser using DataLab