fn
i0e
→Tensori0e(x: Tensor)Exponentially scaled modified Bessel function of order 0.
Computes , the standard exponentially-scaled
variant of the modified Bessel function of the first kind. I_0
itself grows as and therefore overflows
floating-point representation for moderately large arguments; the
scaled form is bounded by 1 for and is the natural
quantity to manipulate in log-density computations (von Mises /
Bessel distributions, Rice distribution, etc.).
Parameters
xTensorInput tensor; any floating-point dtype.
Returns
Tensor element-wise, same shape and dtype as
x.
Notes
Mathematical definition:
The function is even and equals 1 at x = 0. For
,
. Related identities:
i0e(0) = 1 and i0e(x) <= 1 for all real x.
Examples
>>> import lucid
>>> from lucid.special import i0e
>>> i0e(lucid.tensor([0.0, 1.0, 5.0, 20.0]))
Tensor([1.0000, 0.4658, 0.1835, 0.0897])