Learn R Programming

spinebil (version 0.1.0)

sinData: 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

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

Run this code
# NOT RUN {
sinData(4, 100)
sinData(2, 100, 200)
# }

Run the code above in your browser using DataLab