Density and random generation for the spherical normal distribution with mean and concentration parameter (\(\kappa\)) .
Usage
rvmf(n = 100, mu = Vec3(1, 0, 0), k = 5)
dvmf(x, mu, k = 5)Source
Adapted fom rotasym::r_vMF() and rotasym::d_vMF()
Arguments
- n
integer. number of random samples to be generated
- mu
Mean vector. object of class
"Vec3","Line","Ray", or"Plane", where the rows are the observations and the columns are the coordinates.- k
numeric. The concentration parameter (\(\kappa\)) of the von Mises-Fisher distribution
- x
object of class
"Vec3","Line","Ray", or"Plane", where the rows are the observations and the columns are the coordinates.
See also
runif.spherical() for alternative algorithms to generate uniform
distributed samples on a sphere, rkent() for Kent distribution,
rfb() for Fisher-Bingham distribution.

