Skip to content
fn

i1e

→Tensor
i1e(input: Tensor)

Exponentially scaled modified Bessel function of order 1.

Computes I1(x) e−∣x∣I_1(x)\, e^{-|x|}, the bounded counterpart of i1. Because I1I_1 itself grows exponentially with ∣x∣|x|, this scaled form is the safer building block for log-likelihood expressions (Rice / Skellam distributions and similar) where evaluating I_1 directly would overflow.

Parameters

inputTensor
Input tensor; any floating-point dtype.

Returns

Tensor

I1(x) e−∣x∣I_1(x)\, e^{-|x|} element-wise, same shape and dtype as input.

Notes

Definition:

I1(x) e−∣x∣.I_1(x)\, e^{-|x|}.

The function is odd in x, equals 0 at x = 0, and approaches 1/2πx1/\sqrt{2\pi x} as x→∞x \to \infty. Together with i0e this forms the standard scaled-Bessel pair for stable evaluation of rotational-symmetric likelihoods.

Examples

>>> import lucid
>>> from lucid.special import i1e
>>> i1e(lucid.tensor([0.0, 1.0, 5.0]))
tensor([0., 0.2079, 0.164])