powered by
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.
sinData(n, p, f = 1)
sample dimensionality
number of sample points to generate
jitter factor, default=1
sample points in tibble format
# NOT RUN { sinData(4, 100) sinData(2, 100, 200) # }
Run the code above in your browser using DataLab