fn
scaled_modified_bessel_k0
→Tensorscaled_modified_bessel_k0(x: Tensor)Exponentially scaled modified Bessel : .
Computes , the bounded counterpart of
modified_bessel_k0. Because decays
exponentially as , the scaled form is the
natural quantity to manipulate in log-density expressions where
direct evaluation of would underflow.
Parameters
xTensorInput tensor; only is in the domain.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Asymptotic: as .
Examples
>>> import lucid
>>> from lucid.special import scaled_modified_bessel_k0
>>> scaled_modified_bessel_k0(lucid.tensor([1.0, 5.0, 20.0]))
Tensor([1.1445, 0.5478, 0.2745])