ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
pm_mathGammaGil Module Reference

This module contains procedures and generic interfaces for the Lower and Upper Incomplete Gamma functions. More...

Data Types

interface  getGammaIncLowGil
 Generate and return the regularized Lower Incomplete Gamma function for the specified shape parameter ( \(\kappa\)) and upper limit of the integral x. More...
 
interface  getGammaIncUppGil
 Generate and return the regularized Upper Incomplete Gamma function for the specified shape parameter ( \(\kappa\)) and upper limit of the integral x. More...
 
interface  setGammaIncGil
 Return the regularized Lower and Upper Incomplete Gamma function values for the specified shape parameter ( \(\kappa\)) and upper limit of the integral x.
More...
 

Variables

character(*, SK), parameter MODULE_NAME = "@pm_mathGammaGil"
 

Detailed Description

This module contains procedures and generic interfaces for the Lower and Upper Incomplete Gamma functions.

This module provides multiple function and subroutine procedures for computing the Lower and Upper Incomplete Gamma functions. These routines mostly differ only in terms of performance and usage convenience.

  1. If performance is important, use the subroutine interface setGammaIncGil to compute the Lower and Upper Incomplete Gamma functions.
  2. If ease of use matters more than performance, use the function interfaces getGammaIncLowGil to compute the Lower and Upper Incomplete Gamma functions.
Warning
Although all generic interfaces of this module are available for all processor real kinds, the accuracy and performance of the implemented algorithms are optimized for IEEE double precision.
In particular, the algorithms may not accurately compute the Lower and Upper Incomplete Gamma functions in extended precision (e.g., 128 bits) mode corresponding to RKH kind type parameter.
Note
The computations of this module are explicitly based on the proposed approach by:
Gil et al, 2012, EFFICIENT AND ACCURATE ALGORITHMS FOR THE COMPUTATION AND INVERSION OF THE INCOMPLETE GAMMA FUNCTION RATIOS
See also
pm_mathGamma for detailed description of the (Regularized Incomplete) Gamma Function.
Test:
test_pm_mathGammaGil
Todo:
Critical Priority: The implementation of the algorithms of this module must be properly changed to allow reliable extended-precision computations of the incomplete Gamma function.
This would require significant investment in making the original algorithms of Gil et al. kind-agnostic.


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, July 22, 2024, 11:45 AM, NASA Goddard Space Flight Center, Washington, D.C.

Variable Documentation

◆ MODULE_NAME

character(*, SK), parameter pm_mathGammaGil::MODULE_NAME = "@pm_mathGammaGil"

Definition at line 63 of file pm_mathGammaGil.F90.