clust_diff_shapes | R Documentation |
This function generates clusters with different shapes, including both Gaussian and non-Gaussian clusters.
clust_diff_shapes(
n,
num_gau_clust,
num_non_gau_clust,
clust_sd_gau,
clust_sd_non_gau,
num_dims,
a,
b
)
n |
The total number of data points to be generated. |
num_gau_clust |
The number of Gaussian clusters to generate. |
num_non_gau_clust |
The number of non-Gaussian clusters to generate. |
clust_sd_gau |
The standard deviation for the Gaussian clusters. |
clust_sd_non_gau |
The standard deviation for the non-Gaussian clusters. |
num_dims |
The number of dimensions for the data points. |
a |
The scaling factor for the non-Gaussian cluster shape. |
b |
The translation factor for the non-Gaussian cluster shape. |
A matrix containing the generated clusters with different shapes.
# Generate clusters with default parameters
set.seed(20240412)
data <- clust_diff_shapes(
n = 300, num_gau_clust = 4,
num_non_gau_clust = 2, clust_sd_gau = 0.05, clust_sd_non_gau = 0.1,
num_dims = 7, a = 2, b = 4
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.