rnorMmix {norMmix} | R Documentation |
Draw n
(p-dimensional) observations randomly from the multivariate normal
mixture distribution specified by obj
.
rnorMmix(n, obj, index = FALSE, permute = TRUE)
n |
sample size, non-negative. |
obj |
a |
index |
Logical, store the clustering information as first column |
permute |
Logical, indicating if the observations should be randomly permuted after creation “cluster by cluster”. |
n p-dimensional observations, as numeric n \times p
matrix.
Nicolas Trutmann
x <- rnorMmix(500, MW213)
plot(x)
x <- rnorMmix(500, MW213, index=TRUE)
plot(x[,-1], col=x[,1]) ## using index column to color components