Package jdistlib.finance
Class GeneralizedInverseGaussianDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.finance.GeneralizedInverseGaussianDistribution
- All Implemented Interfaces:
TransformDistribution,SupportedDistribution
public final class GeneralizedInverseGaussianDistribution
extends GenericDistribution
implements SupportedDistribution, TransformDistribution
Generalized-inverse-Gaussian law in (lambda, chi, psi), chi/psi positive.
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
ConstructorsConstructorDescriptionGeneralizedInverseGaussianDistribution(double lambda, double chi, double psi) -
Method Summary
Modifier and TypeMethodDescriptiondoublecumulative(double x, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) doublegetChi()doubledoubledoublegetPsi()doublelogCharacteristic(double frequency) logMomentGenerating(double argument) doublequantile(double p, 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
-
GeneralizedInverseGaussianDistribution
public GeneralizedInverseGaussianDistribution(double lambda, double chi, double psi)
-
-
Method Details
-
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 p, boolean lowerTail, boolean logP) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
logMomentGenerating
- Specified by:
logMomentGeneratingin interfaceTransformDistribution
-
logCharacteristic
- Specified by:
logCharacteristicin interfaceTransformDistribution
-
momentGeneratingDomain
- Specified by:
momentGeneratingDomainin interfaceTransformDistribution
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-
getLambda
public double getLambda() -
getChi
public double getChi() -
getPsi
public double getPsi()
-