sin_data: Generating sine wave sample

View source: R/sampling_functions.R

sin_dataR Documentation

Generating sine wave sample

Description

n-1 points are drawn from a normal distribution with mean=0, sd=1, the points in the final direction are calculated as the sine of the values of direction n-1 with additional jittering controled by the jitter factor f.

Usage

sin_data(n, p, f = 1)

Arguments

n

number of sample points to generate

p

sample dimensionality

f

jitter factor, default=1

Value

sample points in tibble format

Examples

sin_data(100, 4)
sin_data(100, 2, 200)

spinebil documentation built on Nov. 5, 2025, 7:35 p.m.