rcard {CircStats} | R Documentation |
Random Generation from the Cardoid Distribution
Description
Generates pseudo-random numbers from a cardoid distribution.
Usage
rcard(n, mu, r)
Arguments
n |
number of random variables to generate. |
mu |
mean direction of the distribution in radians. |
r |
concentration parameter of the distribution. The absolute value of r must be less than 0.5. |
Details
An acceptance/rejection method of simulation is employed.
Value
Returns a vector of n independent random variables generated from a cardoid distribution.
See Also
[Package CircStats version 0.2-6 Index]