r.norMix(obj, x = NULL, xlim = NULL, n = 511, xy.return = TRUE)
norMix
.n
(and xlim
if
specified).x == NULL
. By default,
xlim taken as mean plus/minus 3 standard deviations of the normal mixture.x
is not specified.xy.return
. If it's false, a numeric vector of
the same length as x
, if true (as per default), a list that can
be plotted, with componentsx
.d3 <- norMix(m = 5*(0:2), w = c(0.6, 0.3, 0.1))
plot(d3)
rd3 <- r.norMix(d3)
str(rd3)
stopifnot(rd3 $ y == r.norMix(d3, xy.ret = FALSE))
par(new = TRUE)
plot(rd3, type = "l", col = 3, axes = FALSE, xlab = "", ylab="")
axis(4, col.axis=3)
Run the code above in your browser using DataLab