wrpcauchy | R Documentation |
Density and random generation for the wrapped Cauchy distribution.
dwrpcauchy(x, mu = 0, rho, log = FALSE)
rwrpcauchy(n, mu = 0, rho, wrap = TRUE)
x |
vector of angles measured in radians at which to evaluate the density function. |
mu |
mean direction of the distribution measured in radians. |
rho |
concentration parameter of the distribution, must be in the interval from 0 to 1. |
log |
logical; if |
n |
number of observations. If |
wrap |
logical; if |
The implementation of dwrpcauchy
allows for automatic differentiation with RTMB
.
rwrpcauchy
is imported from CircStats
.
dwrpcauchy
gives the density and rwrpcauchy
generates random deviates.
set.seed(1)
x = rwrpcauchy(10, 0, 1)
d = dwrpcauchy(x, 0, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.