SDDS ToolKit Programs and Libraries for C and Python
|
Routines for computing the incomplete beta function.
Definition in file betai.c.
#include "mdb.h"
Go to the source code of this file.
Functions | |
double | betaIncSum (double x, double a, double b) |
double | betaInc1 (double x, double a, double b) |
double | betaComp (double a, double b) |
Compute the complete beta function component. | |
double | lnBetaComp (double a, double b) |
double | betaInc (double a, double b, double x) |
Compute the incomplete beta function. | |
double betaComp | ( | double | a, |
double | b ) |
Compute the complete beta function component.
Uses the gamma function to compute the value of Beta(a,b) = Γ(a)*Γ(b)/Γ(a+b).
a | First parameter. |
b | Second parameter. |
Definition at line 38 of file betai.c.
double betaInc | ( | double | a, |
double | b, | ||
double | x ) |
Compute the incomplete beta function.
Calculates the incomplete beta function I_x(a,b) for given parameters a, b and x. If necessary, parameters may be swapped internally to improve convergence.
a | First parameter (must be > 0). |
b | Second parameter (must be > 0). |
x | The integration limit (0 ≤ x ≤ 1). |
Definition at line 67 of file betai.c.
double betaInc1 | ( | double | x, |
double | a, | ||
double | b ) |
Definition at line 139 of file betai.c.
double betaIncSum | ( | double | x, |
double | a, | ||
double | b ) |
Definition at line 91 of file betai.c.