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