two_doublets_parallel: Generate Doublets in Parallel with Noise

View source: R/clustering.R

two_doublets_parallelR Documentation

Generate Doublets in Parallel with Noise

Description

This function generates data with two sets of doublets (pairs of clusters) running in parallel, along with added background noise.

Usage

two_doublets_parallel(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 in parallel with noise with custom parameters
set.seed(20240412)
data <- two_doublets_parallel(n = 440, num_noise = 2, min_n = -0.05, max_n = 0.05)

cardinalR documentation built on May 29, 2024, 4:37 a.m.