gen_scurvehole: Generate S-curve Data with a Hole

View source: R/scurve.R

gen_scurveholeR Documentation

Generate S-curve Data with a Hole

Description

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

Usage

gen_scurvehole(n = 500, p = 4)

Arguments

n

A numeric value (default: 500) representing the sample size.

p

A numeric value (default: 4) representing the number of dimensions.

Value

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

References

Wang, Y., Huang, H., Rudin, C., & Shaposhnik, Y. (2021). Understanding how dimension reduction tools work: an empirical approach to deciphering t-SNE, UMAP, TriMAP, and PaCMAP for data visualization. J Mach. Learn. Res, 22, 1-73.

See Also

the PaCMAP homepage.

Examples

set.seed(20240412)
scurvehole <- gen_scurvehole(n = 500, p = 4)

cardinalR documentation built on Aug. 21, 2025, 5:27 p.m.