mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
13 lines
336 B
C
13 lines
336 B
C
#ifndef PROBABILITY_REGULARIZED_GAMMA_H
|
|
#define PROBABILITY_REGULARIZED_GAMMA_H
|
|
|
|
/* regularizedGamma(s,x) = int(e^-t * t^(s-1), t, 0, x) / gamma(s)
|
|
* with :
|
|
* regularizedGamma(s, 0) = 0
|
|
* regularizedGamma(s, inf) = 1 */
|
|
|
|
bool regularizedGamma(double s, double x, double epsilon, int maxNumberOfIterations, double * result);
|
|
|
|
#endif
|
|
|