org.ojalgo.random
Class Poisson

java.lang.Object
  extended by java.lang.Number
      extended by org.ojalgo.random.RandomNumber
          extended by org.ojalgo.random.Poisson
All Implemented Interfaces:
Serializable, Function<Double>, NullaryFunction<Double>, DiscreteDistribution, Distribution

public class Poisson
extends RandomNumber

Distribution of number of points in random point process under certain simple assumptions. Approximation to the binomial distribution when aCount is large and aProbability is small. aLambda = aCount * aProbability.

Author:
apete
See Also:
Serialized Form

Constructor Summary
Poisson()
           
Poisson(double aLambda)
           
 
Method Summary
 double getExpected()
           
 double getProbability(int aVal)
          Probability density function
 double getVariance()
          Subclasses must override either getStandardDeviation() or getVariance()!
 
Methods inherited from class org.ojalgo.random.RandomNumber
doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, toString
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ojalgo.random.Distribution
getStandardDeviation
 

Constructor Detail

Poisson

public Poisson()

Poisson

public Poisson(double aLambda)
Method Detail

getExpected

public double getExpected()

getProbability

public double getProbability(int aVal)
Description copied from interface: DiscreteDistribution
Probability density function


getVariance

public double getVariance()
Description copied from class: RandomNumber
Subclasses must override either getStandardDeviation() or getVariance()!

Specified by:
getVariance in interface Distribution
Overrides:
getVariance in class RandomNumber
See Also:
Distribution.getStandardDeviation(), Distribution.getVariance()