sinData: Generating sine wave sample

Description Usage Arguments Value Examples

View source: R/samplingFunctions.R

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

1
sinData(n, p, f = 1)

Arguments

n

sample dimensionality

p

number of sample points to generate

f

jitter factor, default=1

Value

sample points in tibble format

Examples

1
2
sinData(4, 100)
sinData(2, 100, 200)

spinebil documentation built on Aug. 28, 2019, 5:04 p.m.