LogBessel.eval¶
-
classmethod
LogBessel.
eval
(nu, value, method='approximate')[source]¶ Evaluates the log of the modified Bessel function of the first kind using chosen method
- Parameters
nu – order of the Bessel
value – scalar/array to evaluate
method –
method to evaluate the log-bessel function; one of:
”approximate”: Uses scipy if possible and approximations if too small or large (error of up to 1%, but typically much smaller)
”scipy”: uses the default scipy interpretation, which will return -np.inf or np.inf if too small/large
”precise”: Uses mpmath to precisely evaluate the value. This is very slow
”interpolate”: use cubic interpolation between pre-computed “precise” values. Will become slow if values vary too much.
- Returns
log(Bessel_<nu>(<value>))