public final class GammaRatio extends Object
\[ \frac{\Gamma(a)}{\Gamma(b)} \]
This code has been adapted from:
c++ implementation <boost/math/special_functions/gamma.hpp>.
| Modifier and Type | Method and Description |
|---|---|
static double |
delta(double a,
double delta)
Computes the ratio of gamma functions of a value and an offset value.
|
static double |
value(double a,
double b)
Computes the ratio of gamma functions of two values.
|
public static double value(double a, double b)
\[ \frac{\Gamma(a)}{\Gamma(b)} \]
If either argument is <= 0 or infinite then the result is NaN.
a - Argument a (must be positive finite).b - Argument b (must be positive finite).public static double delta(double a, double delta)
\[ \frac{\Gamma(a)}{\Gamma(a + delta)} \]
Note that the result is calculated accurately even when delta is
small compared to a: indeed even if a+delta ~ a. The function
is typically used when a is large and delta is very small.
a - Argument.delta - Argument.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.