1 #ifndef VONMISESKAPPAFUNCTOR_H 2 #define VONMISESKAPPAFUNCTOR_H 11 #include <boost/math/special_functions/bessel.hpp> 35 int operator()(
const Eigen::VectorXd &x, Eigen::VectorXd &fvec)
const 37 using boost::math::cyl_bessel_i;
39 fvec(0,0) = cyl_bessel_i(1,x[0]) - R*cyl_bessel_i(0,x[0]);
49 int df(
const Eigen::VectorXd &x, Eigen::MatrixXd &fjac)
const 51 using boost::math::cyl_bessel_i;
53 fjac(0,0) = 0.5*(cyl_bessel_i(0,x[0]) + cyl_bessel_i(2,x[0])) - R*cyl_bessel_i(1,x[0]);
A functor object to work with Eigen's non-linear solver to numerically solve for the kappa parameter ...
Definition: vonMisesKappaFunctor.hpp:20
vonMisesKappaFunctor(float Rin)
Constructor.
Definition: vonMisesKappaFunctor.hpp:27
Namespace containing the canopy library for random forest models.
Definition: circularRegressor.hpp:13
int df(const Eigen::VectorXd &x, Eigen::MatrixXd &fjac) const
Calculates the value of the derivative of the function to be solved.
Definition: vonMisesKappaFunctor.hpp:49
int operator()(const Eigen::VectorXd &x, Eigen::VectorXd &fvec) const
Calculates the value of the function to be solved.
Definition: vonMisesKappaFunctor.hpp:35
float R
R parameter of the problem (magnitude of the resultant vector)
Definition: vonMisesKappaFunctor.hpp:22