Ansicht
Dokumentation

QF00_GAMMAI - Incomplete gamma integral

QF00_GAMMAI - Incomplete gamma integral

ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to calculate an incomplete gamma integral.

Example (Poisson distribution)

Calculation of the distribution function of the Poisson distribution with parameter MU at position K.

  DATA:
    A1           TYPE F,
    K            TYPE I,
    MU           TYPE F,
    PROB_POISSON TYPE F,
    Q            TYPE F.

  A1 = K - 1.

  CALL FUNCTION 'QF00_GAMMAI'
    EXPORTING A      = A1
              X      = MU
    IMPORTING GAMMAI = Q.

  PROB_POISSON   =   1 - Q.

Notes

The incomplete gamma integral is defined by the following formula:

GAMMAI(a,x) = INTEGRAL(0..x, exp(-t) * t**(a-1) dt) / GAMMA(A)

where a > 0.

This integral is found in statistics when you calculate the Chi square distribution and Poisson distribution.

Further information

Literature

W.H.Press, B.P.Flannery, S.A.Teukolsky, W.T.Vetterling, Numerical Recipes in C, Cambridge University Press, Cambridge 1988





Parameters

A
GAMMAI
ITERATIONEN
X

Exceptions

INVALID_A

Function Group

QF00

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2008 Date: 20240605 Time: 180010     sap01-206 ( 24 ms )