sinData {spinebil} | R 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
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
sinData(4, 100)
sinData(2, 100, 200)
[Package spinebil version 0.1.6 Index]