gaussian_clusters_with_param {ConsensusClustering} | R Documentation |
Generate clusters of data points from Gaussian distribution with given parameters
Description
Generate clusters of data points from Gaussian distribution with given parameters
Usage
gaussian_clusters_with_param(n, center, sigma)
Arguments
n |
vector of number of data points in each cluster
The length of |
center |
matrix of centers Ncluster x dim |
sigma |
list of covariance matrices dim X dim. The length of sigma should be equal to the number of clusters. |
Value
matrix of Nsamples x (dim + 1). The last column is cluster labels.
Examples
center = rbind(c(0,0),
c(1,1))
sigma = list(diag(c(1,1)),
diag(2,2))
gaussian_clusters_with_param(c(10, 10), center, sigma)
[Package ConsensusClustering version 1.5.0 Index]