Class Generator

java.lang.Object
eduni.distributions.Generator
All Implemented Interfaces:
Seedable
Direct Known Subclasses:
Bernoulli, Beta, Binomial, Cauchy, ChiSquare, Erlang, FDistribution, Gamma, Geometric, Invgamma, Logistic, Negexp, Normal, Pareto, Pascal, Poisson, Tstudent, Uniform, Weibull

public abstract class Generator extends Object implements Seedable
A generic Generator class which delegates its Seedable ability to a Distributions object.
  • Field Details

  • Method Details

    • setSeed

      public void setSeed(long seed)
      Description copied from interface: Seedable
      Set the random number generator's seed.
      Specified by:
      setSeed in interface Seedable
      Parameters:
      seed - The new seed for the generator
    • getSeed

      public long getSeed()
      Description copied from interface: Seedable
      Get the random number generator's seed.
      Specified by:
      getSeed in interface Seedable
      Returns:
      The generator's seed
    • reseed

      public void reseed()
      Description copied from interface: Seedable
      Get another seed well-spaced (from the default SeedGenerator)
      Specified by:
      reseed in interface Seedable