Description Usage Arguments Value
Generates data from a transformed mixture of multivariate normal distributions.
1 2 3 4 5 6 | rMixtureNormalTransform(n, mean = matrix(0, nrow = dim(sigma)[1], ncol =
num_clusters), sigma = array(rep(diag(nrow(mean)), num_clusters), dim =
c(nrow(mean), nrow(mean), num_clusters)), num_clusters = 1,
prob = rep(1, num_clusters)/num_clusters,
transformations = rep(list(function(y) y), nrow(mean)),
method = c("eigen", "svd", "chol"))
|
n |
The number of samples to draw. |
mean |
A matrix corresponding to the means of each cluster. |
sigma |
An array with the covariance matrices of each cluster. |
num_clusters |
The number of clusters in the mixture. |
prob |
Probabilities of cluster membership. |
transformations |
A list of functions to apply to corresponding columns. |
method |
Method used for generating from a multivariate normal distribution. |
A matrix of samples from a transformed mixture of multivariate normal distributions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.