STK++ 0.9.13
|
The namespace Funct enclose all usual and special functions. More...
Classes | |
class | Seriedl |
This Serie computes. More... | |
class | Serielog1p |
This Series computes. More... | |
Functions | |
Real | betaRatio_sr (Real const &a, Real const &b, Real x, bool xm1, bool lower_tail) |
Compute the incomplete beta function ratio I_x(a,b) using its series representation. | |
Real | betaRatio_up (Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail) |
Compute the incomplete beta function ratio I_x(a,b) using its recurrence formula and its asymptotic expansion. | |
Real | betaRatio_cf (Real const &a, Real const &b, Real x, bool xm1, bool lower_tail=true) |
Compute the incomplete beta function ratio using the continued fraction method. | |
Real | betaRatio_se (Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail) |
Compute the incomplete beta function ratio I_x(a,b) using the serie expansion method. | |
Real | betaRatio_ae (Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail) |
Compute the incomplete beta function ratio I_x(a,b) using the asymptotic expansion method. | |
Real | betaRatio (Real const &a, Real const &b, Real const &x, bool lower_tail=true) |
Compute the incomplete beta function ratio Compute the beta ratio function. | |
Real | betaRatio_raw (Real const &a, Real const &b, Real const &x, bool lower_tail) |
Real | factorial (int n) |
This function computes ![]() | |
Real | lfactorial (int n) |
This function computes ![]() | |
Real | factorial (Real const &z) |
This function computes ![]() | |
Real | lfactorial (Real const &z) |
This function computes ![]() | |
Real | gamma (Real const &z) |
This function computes the function ![]() | |
Real | lgamma (Real const &z) |
This function computes the function ![]() | |
Real | factorial_raw (int) |
Real | lfactorial_raw (int) |
Real | factorial_raw (Real const &) |
Real | lfactorial_raw (Real const &) |
Real | gamma_raw (Real const &) |
Real | lgamma_raw (Real const &) |
Real | lanczosSerie (Real const &z) |
Compute the Lanzcos correction series for the gamma function with n = 21 terms. | |
Real | gammaLanczos (Real const &z) |
Compute the gamma function using the Lanzcos expansion using n = 21 terms and r= 22.618910. | |
double | stirlingSerie (Real const &z) |
Compute the Stirling's series for the lgamma function. | |
Real | gammaStirling (Real const &z) |
This function computes the gamma function using the Stirling approximation. | |
Real | lgammaStirling (Real const &z) |
This function computes the log gamma function using the Stirling approximation. | |
Real | lgammaStirlingError (Real const &z) |
Compute the error when we compute ![]() | |
Real | lgammaStirlingError (int n) |
Compute the error when we compute ![]() | |
Real | gammaRatio_raw (Real const &a, Real const &x, bool lower_tail) |
Real | gammaRatioQ_raw (Real const &a, Real const &x) |
Real | gammaRatioP_raw (Real const &a, Real const &x) |
Real | gammaRatio (Real const &a, Real const &x, bool lower_tail) |
Compute the incomplete gamma functions ratio. | |
Real | gammaRatioQ (Real const &a, Real const &x) |
Compute the incomplete gamma function ratio Q(a,x). | |
Real | gammaRatioP (Real const &a, Real const &x) |
Compute the incomplete gamma function ratio P(a,x). | |
Real | beta_pdf_raw (Real const &x, Real const &a, Real const &b) |
Compute the beta density function. | |
Real | binomial_pdf_raw (Real const &x, Real const &n, Real const &p) |
Compute the generalized binomial probability mass function. | |
Real | binomial_pdf_raw (int x, int n, Real const &p) |
Compute the binomial probability mass function. | |
Real | binomial_lpdf_raw (Real const &x, Real const &n, Real const &p) |
Compute the generalized binomial log-probability mass function. | |
Real | binomial_lpdf_raw (int x, int n, Real const &p) |
Compute the binomial log-probability mass function. | |
Real | poisson_pdf_raw (Real const &x, Real const &lambda) |
Compute the Poisson density. | |
Real | poisson_pdf_raw (int x, Real const &lambda) |
Compute the poisson density with integer value. | |
Real | poisson_lpdf_raw (Real const &x, Real const &lambda) |
Compute the log-poisson density. | |
Real | poisson_lpdf_raw (int x, Real const &lambda) |
Compute the log-poisson density with integer value. | |
Real | erf_raw (Real const &a) |
Compute the error function erf(a) Compute the function. | |
Real | erfc_raw (Real const &a) |
Compute the complementary error function erfc(a) Compute the function. | |
Real | normal_cdf_raw (Real const &x) |
Compute the cumulative distribution function of the normal density. | |
Real | normal_pdf_raw (Real const &x) |
compute the probability distribution function of the normal density. | |
Real | psi_raw (Real x) |
Compute the psi function. | |
Real | dev0 (Real const &a, Real const &b) |
compute the partial deviance ![]() | |
Real | b1 (Real const &a, Real const &b, Real const &x, bool xm1) |
Compute the function. | |
Real | g0 (Real const &x) |
compute the partial deviance ![]() | |
Real | log1p (Real const &x) |
compute the function ![]() | |
Real | expm1 (Real const &x) |
compute the function ![]() | |
template<int N> | |
Real | evalPolynomial (Real x, const Real *P) |
Polynomial evaluator. | |
template<> | |
Real | evalPolynomial< 0 > (Real x, const Real *P) |
template<int N> | |
Real | evalPolynomial1 (Real x, const Real *P) |
Polynomial evaluator. | |
template<> | |
Real | evalPolynomial1< 0 > (Real x, const Real *P) |
The namespace Funct enclose all usual and special functions.
The namespace Funct is the domain space of the special function like gamma function, beta function, incomplete gamma function, incomplete beta function... It include also some useful raw functions like log1p...
Definition at line 556 of file STK_Funct_betaRatio.cpp.
References betaRatio_ae(), betaRatio_cf(), betaRatio_se(), betaRatio_sr(), and betaRatio_up().
Referenced by betaRatio().
|
inline |
Definition at line 93 of file STK_Funct_Util.h.
|
inline |
Definition at line 76 of file STK_Funct_Util.h.
Definition at line 193 of file STK_Funct_gamma.h.
References STK::Const::factorialArray, and gamma_raw().
Referenced by factorial(), and factorial().
Definition at line 212 of file STK_Funct_gamma.h.
References STK::Const::factorialArray, and gamma_raw().
Definition at line 282 of file STK_Funct_gamma.h.
References STK::Const::factorialArray, gammaLanczos(), gammaStirling(), and STK::isEven().
Referenced by factorial_raw(), factorial_raw(), gamma(), and lgamma_raw().
Definition at line 389 of file STK_Funct_gammaRatio.cpp.
Referenced by gammaRatio(), gammaRatioP_raw(), and gammaRatioQ_raw().
Definition at line 59 of file STK_Funct_gammaRatio.h.
References gammaRatio_raw().
Definition at line 234 of file STK_Funct_gamma.h.
References lgamma().
Referenced by lfactorial(), and lfactorial().
Definition at line 339 of file STK_Funct_gamma.h.
References gamma_raw(), lgammaStirling(), and stirlingSerie().
Referenced by lgamma().