Circular Distributions
Circular distributions are defined for finite values y in any interval of length
Von Mises distribution
Probability density function
If
If
For
Distribution statement
y ~
von_mises
(mu, kappa)
Increment target log probability density with von_mises_lupdf(y | mu, kappa)
.
Stan functions
real
von_mises_lpdf
(reals y | reals mu, reals kappa)
The log of the von mises density of y given location mu and scale kappa.
real
von_mises_lupdf
(reals y | reals mu, reals kappa)
The log of the von mises density of y given location mu and scale kappa dropping constant additive terms.
real
von_mises_cdf
(reals y | reals mu, reals kappa)
The von mises cumulative distribution function of y given location mu and scale kappa.
real
von_mises_lcdf
(reals y | reals mu, reals kappa)
The log of the von mises cumulative distribution function of y given location mu and scale kappa.
real
von_mises_lccdf
(reals y | reals mu, reals kappa)
The log of the von mises complementary cumulative distribution function of y given location mu and scale kappa.
R
von_mises_rng
(reals mu, reals kappa)
Generate a Von Mises variate with location mu and scale kappa (i.e. returns values in the interval
Numerical stability
Evaluating the Von Mises distribution for y ~ von_mises(mu,kappa)
with
if (kappa < 100) {
y ~ von_mises(mu, kappa);else {
} 1 / kappa));
y ~ normal(mu, sqrt( }