powered by
This function generates a dataset consisting of multiple Gaussian clusters.
make_multigau(n = c(300, 200, 500), p = 4, k = 3, loc = NULL, scale = NULL)
A data containing the Gaussian clusters.
A numeric vector (default: c(300, 200, 500)) representing the sample sizes.
A numeric value (default: 4) representing the number of dimensions.
A numeric value (default: 5) representing the number of clusters.
A numeric matrix (default: NULL) representing the locations/centroids of clusters.
A numeric vector (default: NULL) representing the scaling factors of clusters.
loc_matrix <- matrix(c(0, 0, 0, 0, 5, 9, 0, 0, 3, 4, 10, 7 ), nrow = 3, byrow = TRUE) multigau <- make_multigau(n = c(300, 200, 500), p = 4, k = 3, loc = loc_matrix, scale = c(0.2, 1.5, 0.5))
Run the code above in your browser using DataLab