Cardioid Density Function
Density and random generation for the Cardioid circular distribution.
dcardioid(x, mu = circular(0), rho = 0) rcardioid(n, mu = circular(0), rho = 0, control.circular=list())
x |
a vector. The object is coerced to class |
n |
number of observations. |
mu |
mean direction of the distribution. The object is coerced to class |
rho |
concentration parameter of the distribution. Absolute value of |
control.circular |
the coordinate system used in the output of |
dcardioid
gives the density and rcardioid
generates random deviates.
Claudio Agostinelli and Ulric Lund
Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 2.2.2, World Scientific Press, Singapore.
set.seed(1234) resrad <- rcardioid(n=10) set.seed(1234) resdeg <- rcardioid(n=10, control.circular=list(units="radians", zero=pi)) max(abs(resrad - conversion.circular(resdeg, zero=0)))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.