one_doublet_four_clusts {cardinalR} | R Documentation |
Generate Doublets with Four Clusters and Noise
Description
This function generates data with one set of doublets (pairs of clusters) containing four clusters, along with added background noise.
Usage
one_doublet_four_clusts(n, num_noise, min_n, max_n)
Arguments
n |
The total number of data points to be generated. |
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. |
Value
A matrix containing the generated data, with each row representing a data point.
Examples
# Generate doublets with four clusters and noise with custom parameters
set.seed(20240412)
data <- one_doublet_four_clusts(
n = 440, num_noise = 2,
min_n = -0.05, max_n = 0.05
)
[Package cardinalR version 0.1.1 Index]