dnormmix | R Documentation |
density of a k-component normal mixture
dnormmix(x, theta)
x |
x like dnorm(x, ... |
theta |
parameters of the mixture proportion, mean and sd |
details follow
density of a k-component normal mixture
mvaniterson
n <- 2000
theta <- c(0.8, 0, 1, 0, 4, 1)
x <- rnormmix(n, theta)
hist(x, freq=FALSE, n=100)
curve(dnormmix(x, theta), add=TRUE, lwd=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.