powered by
Generate random multivarate clusters
rmvnorm_clusters(ns, means)
list containing matrix X and labels cl
X
cl
number of data points in each cluster
centers of each cluster
ns <- c(5, 8, 7) means <- list(c(-6, 1), c(-1, -1), c(0, 4)) d <- rmvnorm_clusters(ns, means)
Run the code above in your browser using DataLab