math library

Classes

Double
Lgamma

Functions

beta(double a, double b) → double
Beta function
binomialCoefficient(double n, double k) → double
erf(double x) → double
Returns the error function of x
erfc(double x) → double
Returns the complementary error function of x
gamma(double x) → double
gammaIncLower(double s, double z) → double
The regularized lower incomplete gamma function. Code kanged from SAMTools: https://github.com/lh3/samtools/blob/master/bcftools/kfunc.c
ibeta(double a, double b, double x) → double
The incomplete beta function. See: https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function
ibetaInv(double a, double b, double p) → double
Computes inverse of incomplete beta function https://malishoaib.wordpress.com/2014/05/30/inverse-of-incomplete-beta-function-computational-statisticians-wet-dream/
ibetaReg(double a, double b, double x) → double
The regularized incomplete beta function. See: https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function
ldexp(double x, int e) → double
lgamma(double x) → Lgamma
log1p(double x) → double
Calculates logn 1+x
normalInv(double y0) → double
Computes the inverse of Normal distribution function
polyval(num x, List<num> coef) → double
Evaluates polynomial of degree N
sinPi(double x) → double