Skip to contents

This function generates S-curve data with a hole by filtering out samples that are not close to a specified anchor point.

Usage

scurve_hole(n, num_noise, min_n, max_n)

Arguments

n

The number of samples to generate.

num_noise

The number of additional noise dimensions to add to the data.

min_n

The minimum value for the noise dimensions.

max_n

The maximum value for the noise dimensions.

Value

A matrix containing the generated S-curve data with a hole.

Examples

set.seed(20240412)
s_curve_hole_data <- scurve_hole(
  n = 100, num_noise = 2,
  min_n = -0.05, max_n = 0.05
)