Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rcard

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


CircStats

Circular Statistics, from "Topics in Circular Statistics" (2001)

v0.2-6
GPL-2
Authors
S-plus original by Ulric Lund <ulund@calpoly.edu>, R port by Claudio Agostinelli <claudio.agostinelli@unitn.it>
Initial release
2018-06-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.