Class Poisson

java.lang.Object
eduni.distributions.Generator
eduni.distributions.Poisson
All Implemented Interfaces:
DiscreteGenerator, Seedable

public class Poisson extends Generator implements DiscreteGenerator
A random number generator based on the poisson distribution. automatically generated by MetaGenerator
  • Constructor Details

    • Poisson

      public Poisson(double mean)
      the seed is aumatically provided by the SeedGenerator
    • Poisson

      public Poisson(double mean, long seed)
      The constructor with which a specific seed is set for the random number generator
      Parameters:
      seed - The initial seed for the generator, two instances with the same seed will generate the same sequence of numbers
  • Method Details

    • sample

      public long sample()
      Generate a new random number.
      Specified by:
      sample in interface DiscreteGenerator
      Returns:
      The next random number in the sequence