Class Poisson


  • public class Poisson
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double lambda  
      private RandomEngine r  
      private double z  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Poisson()  
        Poisson​(double lambda, long seed)  
        Poisson​(double lambda, RandomEngine re)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double expectedMean()  
      double expectedVariance()  
      double nextDouble()  
      int nextInt()
      Returns the next value the Poisson distribution; technique is due to Algorithm 369, CACM, January 1970
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lambda

        private double lambda
      • z

        private final double z
    • Constructor Detail

      • Poisson

        private Poisson()
      • Poisson

        public Poisson​(double lambda,
                       long seed)
      • Poisson

        public Poisson​(double lambda,
                       RandomEngine re)
    • Method Detail

      • nextInt

        public int nextInt()
        Returns the next value the Poisson distribution; technique is due to Algorithm 369, CACM, January 1970
      • nextDouble

        public double nextDouble()
      • expectedMean

        public double expectedMean()
      • expectedVariance

        public double expectedVariance()