Skip to contents

Simulation of random values from a spherical Kent distribution.

Usage

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

Source

Adapted from Directional::rkent()

Arguments

n

integer. number of random samples to be generated

mu

Mean orientation. object of class description "Vec3()", "Line()", or "Plane"

k

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

b

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

See also

rvmf() to draw samples from the von Mises Fisher distribution around a specified mean vector. runif.spherical() to draw from a a spherical uniform distribution. rfb() to draw from a Fisher-Bingham distribution.

Examples

set.seed(20250411)
x <- rkent(100, mu = Line(120, 50), k = 5, b = 1)
plot(x)