Skip to contents

Simulation of random values from a spherical Kent distribution.

Usage

rkent(n = 100, mu = c(1, 0, 0), k = 5, b)

Source

Adapted from Directional::rkent()

Arguments

n

integer. number of random samples to be generated

mu

numeric. Can be three element vector, three column array, or an object of class "line" or "plane"

k

numeric. The concentration parameter (\(\kappa\))

b

numeric. \(\beta\) (ellipticity): \(0 \leq \beta < \kappa\)

See also

rvmf() for von Mises-Fisher distribution

Examples

x <- rkent(100, mu = Line(120, 50), k = 5, b = 1)
stereoplot()
stereo_point(x)