public final class SaddlePoint extends Object
Utility class used by various distributions to accurately compute their respective probability mass functions. The implementation for this class is based on the Catherine Loader's dbinom routines.
This class is not intended to be called directly.
References:
Constructor and Description |
---|
SaddlePoint()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static double |
getDeviancePart(double x,
double mu)
A part of the deviance portion of the saddle point approximation.
|
static double |
getStirlingError(double z)
Compute the error of Stirling's series at the given value.
|
static double |
logBinomialProbability(int x,
int n,
double p,
double q)
Compute the PMF for a binomial distribution using the saddle point
expansion.
|
public static double getStirlingError(double z)
References:
z
- the value.public static double getDeviancePart(double x, double mu)
References:
x
- the x value.mu
- the average.public static double logBinomialProbability(int x, int n, double p, double q)
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).Jas4pp 1.5 © Java Analysis Studio for Particle Physics