View source: R/sampling_functions.R
| sin_data | R Documentation |
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.
sin_data(n, p, f = 1)
n |
number of sample points to generate |
p |
sample dimensionality |
f |
jitter factor, default=1 |
sample points in tibble format
sin_data(100, 4)
sin_data(100, 2, 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.