Random Generation from the Cardoid Distribution

Description

Generates pseudo-random numbers from a cardoid distribution.

Usage

1
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

dcard

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.