Skip to contents

Estimates the parameters of a von Mises-Fisher or Kent distribution.

Usage

kent_mle(x)

vmf_mle(x)

Source

Adapted from Directional::kent.mle() and Directional::vmf.mle()

Arguments

x

Object of class "Vec3", "Line" or "Plane"

Examples

x <- rkent(100, mu = Line(120, 50), k = 5, b = 1)
kent_mle(x)
#> $G
#> Line object (n = 3):
#>        azimuth   plunge
#> mean  108.7425 60.91018
#> major 326.0862 23.86040
#> minor 228.9698 15.64696
#> 
#> $param
#>      kappa       beta        psi 
#>  3.9366678  0.8588453 -0.6944820 
#> 
#> $logcon
#> [1] 4.448841
#> 
#> $loglik
#> [1] -147.1222
#> 
vmf_mle(x)
#> $loglik
#> [1] -150.9926
#> 
#> $mu
#> Line object (n = 1):
#>   azimuth    plunge 
#> 108.74252  60.91018 
#> 
#> $kappa
#> [1] 3.755777
#>