powered by
The function circleUnif samples n points from the circle of radius r, uniformly with respect to the circumference length.
circleUnif
n
r
circleUnif(n, r = 1)
circleUnif returns an n by 2 matrix of coordinates.
an integer specifying the number of points in the sample.
a numeric variable specifying the radius of the circle. The default value is 1.
1
Fabrizio Lecci
sphereUnif, torusUnif
sphereUnif
torusUnif
X <- circleUnif(100) plot(X)
Run the code above in your browser using DataLab