Package jdistlib.finance
Class PolyaAeppliDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.finance.PolyaAeppliDistribution
- All Implemented Interfaces:
AtomAwareDistribution,SupportedDistribution
public final class PolyaAeppliDistribution
extends GenericDistribution
implements AtomAwareDistribution, SupportedDistribution
Polya-Aeppli count: Poisson clusters with shifted-geometric cluster sizes.
-
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
-
PolyaAeppliDistribution
public PolyaAeppliDistribution(double lambda, 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
-