org.jquantlib.math.distributions
Class PoissonDistribution
- java.lang.Object
-
- org.jquantlib.math.distributions.PoissonDistribution
-
- All Implemented Interfaces:
- Ops.IntToDouble
public class PoissonDistribution extends java.lang.Object implements Ops.IntToDouble
Normal distribution functionGiven an integer , it returns its probability in a Poisson distribution.
-
-
Constructor Summary
Constructors Constructor and Description PoissonDistribution(double mu)PoissonDistribution constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleop(int k)
-
-
-
Constructor Detail
-
PoissonDistribution
public PoissonDistribution(double mu)
PoissonDistribution constructorInitialize the mean value
- Parameters:
the- mean value
-
-
Method Detail
-
op
public double op(int k)
PoissonDistribution evaluation
Compute the Poisson Distribution with input and .
- Specified by:
opin interfaceOps.IntToDouble- Parameters:
k-- Returns:
- Math.exp(k*Math.log(mu_) - logFactorial - mu_)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG