powered by
Density and random generation for the wrapped Cauchy distribution.
dwrpcauchy(x, mu = 0, rho, log = FALSE)rwrpcauchy(n, mu = 0, rho, wrap = TRUE)
rwrpcauchy(n, mu = 0, rho, wrap = TRUE)
dwrpcauchy gives the density and rwrpcauchy generates random deviates.
dwrpcauchy
rwrpcauchy
vector of angles measured in radians at which to evaluate the density function.
mean direction of the distribution measured in radians.
concentration parameter of the distribution, must be in the interval from 0 to 1.
logical; if TRUE, densities are returned on the log scale.
TRUE
number of observations. If length(n) > 1, the length is taken to be the number required.
length(n) > 1
logical; if TRUE, generated angles are wrapped to the interval [-pi, pi].
The implementation of dwrpcauchy allows for automatic differentiation with RTMB. rwrpcauchy is imported from CircStats.
RTMB
CircStats
set.seed(1) x = rwrpcauchy(10, 0, 1) d = dwrpcauchy(x, 0, 1)
Run the code above in your browser using DataLab