Class IncompleteGammaFunction

  • All Implemented Interfaces:
    Function<Double,​Double>

    public class IncompleteGammaFunction
    extends Object
    implements Function<Double,​Double>
    The incomplete gamma function is defined as: $$ \begin{equation*} P(a, x) = \frac{\gamma(a, x)}{\Gamma(a)}\int_0^x e^{-t}t^{a-1}dt \end{equation*} $$ where $a > 0$.

    This class is a wrapper for the Commons Math library implementation of the incomplete gamma function link

    • Constructor Detail

      • IncompleteGammaFunction

        public IncompleteGammaFunction​(double a)
        Creates an instance.
        Parameters:
        a - the value
      • IncompleteGammaFunction

        public IncompleteGammaFunction​(double a,
                                       int maxIter,
                                       double eps)
        Creates an instance.
        Parameters:
        a - the value
        maxIter - the maximum iterations
        eps - the epsilon