spherical_dist | R Documentation |
The first and second derivative of the log density of the von-Mises Fisher distribution and Kent distribution
psi_vmf(par, x, k = NULL) psi_kent(par, x, k = NULL, b = NULL) kent(k = NULL, b = NULL) vmf(k = NULL)
par |
parameter vector to be estimated |
x |
random variable x, taken one row at a time |
k |
concentration parameter (vmf and kent distribution) |
b |
ovalness parameter (kent distribution) |
psi_vmf
corresponds to the von-Mises Fisher distribution, where psi_kent
corresponds to the
Kent distribution. The parameters to be estimated for the von-Mises Fisher distribution are the mean direction mu
and
concentration parameter k
. Whereas for the Kent distribution, the parameters are mu
, the major and minor axes
gamma1
and gamma2
, the concentration parameter k
and ovalness parameter b
. The parameters enter
psi_kent
in a long vector.
list containing two elements
|
the evaluation of the first derivative |
|
the evaluation of the second derivative |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.