gen_clust: Random multivariate normal cluster generation

View source: R/helper_funcs.R

gen_clustR Documentation

Random multivariate normal cluster generation

Description

This function generates a random p-dimensional multivariate normal cluster.

Usage

gen_clust(obs, p, mean, sd)

Arguments

obs

The number of observations you wish to generate.

p

The number of dimensions for the multivariate normal cluster to be generated.

mean

A vector of means, one for each dimension of the cluster.

sd

A vector of standard deviations, one for each dimension of the cluster.

Value

Returns an 'obs x p' matrix where each column $p_i$ is an obs-length Gaussian distributed vector with N(\mu= mean[i], \sigma= sd[i]).

Examples

c1 <- gen_clust(100, 10, mean= c(seq(-8, 10, 2)), sd= rep(1, 10))

alexWhitworth/emclustr documentation built on June 12, 2024, 10:13 p.m.