gau_clust | R Documentation |
Generate Gaussian Clusters
gau_clust(
n,
num_clust,
mean_matrix,
var_vec,
num_dims,
num_noise,
min_n,
max_n
)
n |
The total number of data points to be generated. |
num_clust |
The number of clusters to generate. |
mean_matrix |
A matrix where each row represents the mean vector for a cluster. |
var_vec |
A vector specifying the variance for each cluster. |
num_dims |
The number of effective dimensions for the data points. |
num_noise |
The number of additional noise dimensions to be generated. |
min_n |
The minimum value for the noise added to the data points. |
max_n |
The maximum value for the noise added to the data points. |
This function generates Gaussian clusters with specified parameters.
A matrix containing the generated Gaussian clusters.
set.seed(20240412)
gau_clust(
n = 300, num_clust = 5,
mean_matrix = rbind(
c(1, 0, 0, 0), c(0, 1, 0, 0), c(0, 0, 1, 0),
c(0, 0, 0, 1), c(0, 0, 0, 0)
), var_vec = c(0.05, 0.05, 0.05, 0.05, 0.05),
num_dims = 4, num_noise = 2, min_n = -0.05, max_n = 0.05
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.