inst/snippet/rev-mix-normals02.R

x <- seq(0, 30, by=0.25)
density <- 0.3 * dnorm(x,8,2) + 0.7 * dnorm(x,16,3)
xyplot(density~x, type="l", main="pdf of a mixture of normals")
rpruim/fastR documentation built on Nov. 12, 2023, 12:26 p.m.