org.jquantlib.math.distributions
Class GammaDistribution
- java.lang.Object
-
- org.jquantlib.math.distributions.GammaDistribution
-
- All Implemented Interfaces:
- Ops.DoubleOp
public class GammaDistribution extends java.lang.Object implements Ops.DoubleOp
The gamma distribution is a two-parameter family of continuous probability distributions.A gamma distribution is a general type of statistical distribution that is related to the beta distribution and arises naturally in processes for which the waiting times between Poisson distributed events are relevant.
-
-
Constructor Summary
Constructors Constructor and Description GammaDistribution(double a)Intitializesa_and checks thata_is not smaller than 0.00.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleop(double x)Computes the Gamma distribution.
-
-
-
Constructor Detail
-
GammaDistribution
public GammaDistribution(double a)
Intitializesa_and checks thata_is not smaller than 0.00.- Parameters:
a-- Throws:
java.lang.ArithmeticException- ifa_is smaller than 0.00
-
-
Method Detail
-
op
public double op(double x)
Computes the Gamma distribution.- Specified by:
opin interfaceOps.DoubleOp- Parameters:
x- random variable- Returns:
- Gamma distribution of
x
-
-
DataMelt 3.0 © DataMelt by jWork.ORG