View source: R/samplingFunctions.R
spiralData | R Documentation |
n-2 points are drawn from a normal distribution with mean=0, sd=1, the points in the final two direction are sampled along a spiral by samping the angle from a normal distribution with mean=0, sd=2*pi (absolute values are used to fix the orientation of the spiral).
spiralData(n, p)
n |
sample dimensionality |
p |
number of sample points to generate |
sample points in matrix format
spiralData(4, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.