#include "../../numerics.h"Go to the source code of this file.
Functions | |
| double | stirling_error (double z) |
| double | saddle_deviance_part (double x, double mu) |
| double | log_binomial_pmf (int x, int n, double p, double q) |
These functions are not intended to be called directly.
References:
| double log_binomial_pmf | ( | int | x, | |
| int | n, | |||
| double | p, | |||
| double | q | |||
| ) |
Compute the PMF for a binomial distribution using the saddle point expansion.
| x | the value at which the probability is evaluated. | |
| n | the number of trials. | |
| p | the probability of success. | |
| q | the probability of failure (1 - p). |
| double saddle_deviance_part | ( | double | x, | |
| double | mu | |||
| ) |
A part of the deviance portion of the saddle point approximation.
References:
| x | the x value. | |
| mu | the average. |
| double stirling_error | ( | double | z | ) |
Compute the error of Stirling's series at the given value.
References:
| z | the value. |
1.5.3