Class GammaFunction
- java.lang.Object
-
- com.opengamma.strata.math.impl.function.special.GammaFunction
-
- All Implemented Interfaces:
DoubleUnaryOperator
public class GammaFunction extends Object implements DoubleUnaryOperator
The gamma function is a generalization of the factorial to complex and real numbers. It is defined by the integral: $$ \begin{equation*} \Gamma(z)=\int_0^\infty t^{z-1}e^{-t}dt \end{equation*} $$ and is related to the factorial by $$ \begin{equation*} \Gamma(n+1)=n! \end{equation*} $$ It is analytic everywhere but $z=0, -1, -2, \ldots$This class is a wrapper for the Commons Math library implementation of the Gamma function.
-
-
Constructor Summary
Constructors Constructor Description GammaFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
applyAsDouble(double x)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.DoubleUnaryOperator
andThen, compose
-
-
-
-
Method Detail
-
applyAsDouble
public double applyAsDouble(double x)
- Specified by:
applyAsDouble
in interfaceDoubleUnaryOperator
-
-