JWS C Library
C language utility library
|
Definitions for miscellaneous special functions. More...
Go to the source code of this file.
Functions | |
double | log_gamma_d (double x) |
Computes the log of the gamma function, using the Lanczos approximation. | |
double | beta_d (double x, double y) |
Computes the beta function. | |
double | mult_beta_d (const double *const x, uint32_t num_elts) |
Computes the multinomial beta function. | |
double | log_beta_d (double x, double y) |
Computes the log of the beta function. | |
double | log_mult_beta_d (const double *const x, uint32_t num_elts) |
Computes the log of the multinomial beta function. |
Definitions for miscellaneous special functions.
Definition in file func.c.
double log_gamma_d | ( | double | x | ) |
double beta_d | ( | double | x, |
double | y | ||
) |
Computes the beta function.
Compute the Beta function.
Since this computeation relies on the gamma function, which explodes for large values, this is computed in log space using the numerically approximated log_gamma function, and the result is then exponentiated.
double mult_beta_d | ( | const double *const | x, |
uint32_t | num_elts | ||
) |
Computes the multinomial beta function.
Compute the multinomial Beta function.
Since this computeation relies on the gamma function, which explodes for large values, this is computed in log space using the numerically approximated log_gamma function, and the result is then exponentiated.
double log_beta_d | ( | double | x, |
double | y | ||
) |