Description Usage Arguments Value Author(s) See Also Examples
Sample n
points uniformly on a disc of radius r
in
two-dimensional euclidean space via transformation to polar coordinates:
the angle is sampled uniformly from U(0,2π), the length is
sampled uniformly from √{U(0,r^2)}. The sampled polar
coordinates are then back-transformed to cartesian coordinates.
1 | runifdisc(n, r = 1, buffer = 0)
|
n |
integer size of the sample. |
r |
numeric radius of the disc (centered at (0,0)). |
buffer |
radius of inner buffer zone without points. |
A two-column coordinate matrix of the sampled points.
Sebastian Meyer
runifdisc
in package spatstat, which is
slightly more flexible and integrated within the "ppp"
class.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.