Package org.drip.measure.discrete
Class PoissonDistribution
java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.discrete.PoissonDistribution
public class PoissonDistribution extends R1Univariate
PoissonDistribution implements the Univariate Poisson Distribution using the specified
Mean/Variance.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = Antithetic, Quadratically Re-sampled, De-biased Distribution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description PoissonDistribution(double dblLambda)Construct a PoissonDistribution Instance -
Method Summary
Modifier and Type Method Description doublecumulative(double dblX)Compute the cumulative under the distribution to the given valuedoubledensity(double dblX)Compute the Density under the Distribution at the given VariateArray2Dhistogram()Retrieve the Univariate Weighted Histogramdoubleincremental(double dblXLeft, double dblXRight)Compute the Incremental under the Distribution between the 2 variatesdoubleinvCumulative(double dblY)Compute the inverse cumulative under the distribution corresponding to the given valuedoublelambda()Retrieve Lambdadoublemean()Retrieve the Mean of the Distributiondouble[]support()Lay out the Support of the PDF Rangedoublevariance()Retrieve the Variance of the DistributionMethods inherited from class org.drip.measure.continuous.R1Univariate
bPOE, centralMoment, cvar, differentialEntropy, excessKurtosis, expectedShortfall, fisherInformation, iqr, kullbackLeiblerDivergence, median, mode, momentGeneratingFunction, nonCentralMoment, populationCentralMeasures, probabilityGeneratingFunction, quantile, random, randomArray, skewness, supported, tukeyAnomaly, tukeyCriterionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PoissonDistribution
public PoissonDistribution(double dblLambda) throws java.lang.ExceptionConstruct a PoissonDistribution Instance- Parameters:
dblLambda- Lambda- Throws:
java.lang.Exception- Thrown if the inputs are invalid
-
-
Method Details
-
lambda
public double lambda()Retrieve Lambda- Returns:
- Lambda
-
support
public double[] support()Description copied from class:R1UnivariateLay out the Support of the PDF Range- Specified by:
supportin classR1Univariate- Returns:
- Support of the PDF Range
-
cumulative
public double cumulative(double dblX) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the cumulative under the distribution to the given value- Specified by:
cumulativein classR1Univariate- Parameters:
dblX- Variate to which the cumulative is to be computed- Returns:
- The cumulative
- Throws:
java.lang.Exception- Thrown if the inputs are invalid
-
incremental
public double incremental(double dblXLeft, double dblXRight) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the Incremental under the Distribution between the 2 variates- Overrides:
incrementalin classR1Univariate- Parameters:
dblXLeft- Left Variate to which the cumulative is to be computeddblXRight- Right Variate to which the cumulative is to be computed- Returns:
- The Incremental under the Distribution between the 2 variates
- Throws:
java.lang.Exception- Thrown if the inputs are invalid
-
invCumulative
public double invCumulative(double dblY) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the inverse cumulative under the distribution corresponding to the given value- Overrides:
invCumulativein classR1Univariate- Parameters:
dblY- Value corresponding to which the inverse cumulative is to be computed- Returns:
- The inverse cumulative
- Throws:
java.lang.Exception- Thrown if the Input is invalid
-
density
public double density(double dblX) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the Density under the Distribution at the given Variate- Specified by:
densityin classR1Univariate- Parameters:
dblX- Variate at which the Density needs to be computed- Returns:
- The Density
- Throws:
java.lang.Exception- Thrown if the input is invalid
-
mean
public double mean()Description copied from class:R1UnivariateRetrieve the Mean of the Distribution- Specified by:
meanin classR1Univariate- Returns:
- The Mean of the Distribution
-
variance
public double variance()Description copied from class:R1UnivariateRetrieve the Variance of the Distribution- Specified by:
variancein classR1Univariate- Returns:
- The Variance of the Distribution
-
histogram
Description copied from class:R1UnivariateRetrieve the Univariate Weighted Histogram- Overrides:
histogramin classR1Univariate- Returns:
- The Univariate Weighted Histogram
-