Reparameterised von Mises-Fisher distribution
vmf2.RdDensity, distribution function, and random generation for the von Mises-Fisher distribution.
Arguments
- x
unit vector or matrix (with each row being a unit vector) of evaluation points
- theta
direction and concentration vector. The direction of
thetadetermines the mean direction on the sphere. The norm ofthetais the concentration parameter of the distribution.- log
logical; if
TRUE, densities are returned on the log scale.- n
number of random values to return.
Details
In this parameterisation, \(\theta = \kappa \mu\), where \(\mu\) is a unit vector and \(\kappa\) is the concentration parameter.
dvmf2 allows for automatic differentiation with RTMB. rvmf2 is imported from movMF::rmovMF.