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.

Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • PoissonDistribution

      public PoissonDistribution​(double dblLambda) throws java.lang.Exception
      Construct 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: R1Univariate
      Lay out the Support of the PDF Range
      Specified by:
      support in class R1Univariate
      Returns:
      Support of the PDF Range
    • cumulative

      public double cumulative​(double dblX) throws java.lang.Exception
      Description copied from class: R1Univariate
      Compute the cumulative under the distribution to the given value
      Specified by:
      cumulative in class R1Univariate
      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.Exception
      Description copied from class: R1Univariate
      Compute the Incremental under the Distribution between the 2 variates
      Overrides:
      incremental in class R1Univariate
      Parameters:
      dblXLeft - Left Variate to which the cumulative is to be computed
      dblXRight - 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.Exception
      Description copied from class: R1Univariate
      Compute the inverse cumulative under the distribution corresponding to the given value
      Overrides:
      invCumulative in class R1Univariate
      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.Exception
      Description copied from class: R1Univariate
      Compute the Density under the Distribution at the given Variate
      Specified by:
      density in class R1Univariate
      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: R1Univariate
      Retrieve the Mean of the Distribution
      Specified by:
      mean in class R1Univariate
      Returns:
      The Mean of the Distribution
    • variance

      public double variance()
      Description copied from class: R1Univariate
      Retrieve the Variance of the Distribution
      Specified by:
      variance in class R1Univariate
      Returns:
      The Variance of the Distribution
    • histogram

      public Array2D histogram()
      Description copied from class: R1Univariate
      Retrieve the Univariate Weighted Histogram
      Overrides:
      histogram in class R1Univariate
      Returns:
      The Univariate Weighted Histogram