Generate Curvy Branching Cluster Data with Background Noise
Source:R/branching.R
curvy_branch_clust_bkg.Rd
This function generates data with four clusters, two of which follow a curvilinear pattern and the other two are distributed randomly.
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.
Examples
# Generate curvy branching cluster data with background noise with custom parameters
set.seed(20240412)
data <- curvy_branch_clust_bkg(
n = 400, num_noise = 2, min_n = -0.05,
max_n = 0.05
)