public final class FastGamma extends Object
Implementation: High performance implementation.
This is a port of gen_fun.cpp from the C-RAND / WIN-RAND library.| Modifier and Type | Method and Description |
|---|---|
static double |
gamma(double x)
Returns a quick approximation of the gamma function gamma(x).
|
static double |
logGamma(double x)
Returns a quick approximation of log(gamma(x)).
|
public static double gamma(double x)
x - the valuepublic static double logGamma(double x)
x - the valueCopyright © 2022. All rights reserved.