rmvnorm_clusters {dppmix}R Documentation

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

ns <- c(5, 8, 7)
means <- list(c(-6, 1), c(-1, -1), c(0, 4))
d <- rmvnorm_clusters(ns, means)

[Package dppmix version 0.1.1 Index]