powered by
Generate clusters of data points from Gaussian-mixture-model distributions with randomly generated parameters
gaussian_mixture_clusters( n = c(50, 50), dim = 2, sd.max = 0.1, sd.noise = 0.01, r.range = c(0.1, 1), mixture.range = c(1, 4), mixture.sep = 0.5 )
a list of data points (X) and cluster labels (class)
vector of number of data points in each cluster The length of n should be equal to the number of clusters.
n
number of dimensions
maximum standard deviation of clusters
standard deviation of the added noise
the range (min, max) of distance of cluster centers from the origin
range (min, max) of the number of Gaussian-mixtures.
scaler indicating the separability between the mixtures.
data = gaussian_mixture_clusters() X = data$X y = data$class
Run the code above in your browser using DataLab