Expand description
Various mathematical and statistical functions.
Enums§
Functions§
- beta
- Calculates the beta function using the relationship between the beta function and the gamma function.
- binom_
coeff - Calculates the binomial coefficient
nCk for two integers
nandk, withn >= k. - binom_
coeff_ alt - An alternative method for computing binomial coefficients. There is no significant difference
between the compute time using the
binom_coeffmethod and this method. This method becomes slightly inaccurate (by 1 or 2) starting atn ~ 50. - boxcox
- Calculates the one-parameter Box-Cox transformation with some power parameter
lambda. - boxcox_
shifted - Calculates the two-parameter Box-Cox transformation with some power parameter
lambdaand some shift parameteralpha. - digamma
- Calculates the digamma function, which is the logarithmic derivative of the gamma function. It obeys the equation `digamma(x+1) = digamma(x)
- erf
- Calculates the error function erf(x).
- gamma
- Calculates the Gamma function using the Lanczos
approximation. It obeys the equation
gamma(x+1) = gamma(x) * x. This approximation uses the reflection formula to extend the calculation to the entire complex plane. - interp1d_
linear - logistic
- Calculates the standard logistic function
- logit
- Calculates the logit function
- softmax
- Calculates the softmax (the normalized exponential) function, which is a generalization of the logistic function to multiple dimensions.