powered by
Generate clusters of data points from Gaussian distribution with given parameters
gaussian_clusters_with_param(n, center, sigma)
matrix of Nsamples x (dim + 1). The last column is cluster labels.
vector of number of data points in each cluster The length of n should be equal to the number of clusters.
n
matrix of centers Ncluster x dim
list of covariance matrices dim X dim. The length of sigma should be equal to the number of clusters.
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)
Run the code above in your browser using DataLab