Learn R Programming

dppmix (version 0.1.1)

rmvnorm_clusters: Generate random multivarate clusters

Description

Generate random multivarate clusters

Usage

rmvnorm_clusters(ns, means)

Arguments

ns

number of data points in each cluster

means

centers of each cluster

Value

list containing matrix X and labels cl

Examples

Run this code
# NOT RUN {
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