gen_clust | R Documentation |
This function generates a random p-dimensional multivariate normal cluster.
gen_clust(obs, p, mean, sd)
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. |
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])
.
c1 <- gen_clust(100, 10, mean= c(seq(-8, 10, 2)), sd= rep(1, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.