Regularized lower incomplete gamma function .
The CDF of a Gamma(a, 1) variable at x — what
lucid.distributions.Gamma.cdf evaluates.
Parameters
Returns
Tensor, in the promoted dtype of the two.
Raises
NotImplementedErrorFrom
backward, when input requires a gradient: only
other is differentiable, with
.Notes
Evaluated by the algorithm of Cephes' igam as SciPy refines it: the
power series below , 1 - Q by the continued
fraction above, and Temme's uniform asymptotic expansion where a is
large and x near it ( with
, or with
). The edges follow the reference
framework: , ,
for , for a
finite x; a negative argument, ,
and NaN answer NaN.
Examples
>>> import lucid
>>> from lucid.special import gammainc
>>> gammainc(lucid.tensor([1.0, 2.0, 3.0]), lucid.tensor([1.0, 2.0, 3.0]))
tensor([0.6321, 0.594, 0.5768])