Package jdistlib.finance
Class DelaporteDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.finance.DelaporteDistribution
- All Implemented Interfaces:
AtomAwareDistribution,SupportedDistribution
public final class DelaporteDistribution
extends GenericDistribution
implements AtomAwareDistribution, SupportedDistribution
Delaporte count: Poisson(lambda) plus NB(shape, successProbability).
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleatomProbability(double x) ReturnsP(X = x); zero means no declared atom atx.doublecumulative(double x, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) doubledoubledoublequantile(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
-
DelaporteDistribution
public DelaporteDistribution(double lambda, double shape, double probability)
-
-
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
-
atomProbability
public double atomProbability(double x) Description copied from interface:AtomAwareDistributionReturnsP(X = x); zero means no declared atom atx.- Specified by:
atomProbabilityin interfaceAtomAwareDistribution
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-