Package jdistlib.finance
Class VarianceGammaDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.finance.VarianceGammaDistribution
- All Implemented Interfaces:
TransformDistribution,SupportedDistribution
public final class VarianceGammaDistribution
extends GenericDistribution
implements SupportedDistribution, TransformDistribution
Variance-gamma law X=mu+theta*G+sigma*sqrt(G)*Z, G~Gamma(shape,1).
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
ConstructorsConstructorDescriptionVarianceGammaDistribution(double shape, double theta, double sigma, double mu) -
Method Summary
Modifier and TypeMethodDescriptiondoublecumulative(double x, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) doubledoublegetMu()doublegetShape()doublegetSigma()doublegetTheta()doublelogCharacteristic(double frequency) logMomentGenerating(double argument) doublequantile(double probability, boolean lowerTail, boolean logP) doublerandom()Methods inherited from class jdistlib.generic.GenericDistribution
copyBackward, cumulative, cumulative, cumulative, cumulative_hazard, cumulative_hazard, cumulativeInto, density, density, densityInto, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, quantileInto, random, random, randomInto, setRandomEngine, survival, survival, survival
-
Constructor Details
-
VarianceGammaDistribution
public VarianceGammaDistribution(double shape, double theta, double sigma, double mu)
-
-
Method Details
-
getShape
public double getShape() -
getTheta
public double getTheta() -
getSigma
public double getSigma() -
getMu
public double getMu() -
density
public double density(double x, boolean log) - Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double x, boolean lowerTail, boolean logP) - Specified by:
cumulativein classGenericDistribution
-
quantile
public double quantile(double probability, boolean lowerTail, boolean logP) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
logCharacteristic
- Specified by:
logCharacteristicin interfaceTransformDistribution
-
logMomentGenerating
- Specified by:
logMomentGeneratingin interfaceTransformDistribution
-
momentGeneratingDomain
- Specified by:
momentGeneratingDomainin interfaceTransformDistribution
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-