Class Lambda

java.lang.Object
cern.colt.PersistentObject
cern.jet.random.AbstractDistribution
repast.simphony.random.DistributionsAdapter
repast.simphony.random.Lambda
All Implemented Interfaces:
cern.colt.function.DoubleFunction, cern.colt.function.IntFunction, Serializable, Cloneable

public class Lambda extends DistributionsAdapter
A simple wrapper around Distributions.nextLambda(double, double, RandomEngine).
Author:
Jerry Vos
See Also:
  • Field Details

    • l3

      protected double l3
    • l4

      protected double l4
  • Constructor Details

    • Lambda

      public Lambda(double l3, double l4, cern.jet.random.engine.RandomEngine engine)
      Constructs this distribution with the specified parameters to pass to the Distributions.nextLambda(double, double, RandomEngine) method.
      Parameters:
      l3 - the lambda'a l3 parameter
      l4 - the lambda'a l4 parameter
      engine - the lambda's random engine
  • Method Details

    • nextDouble

      public double nextDouble()
      Returns the result of Distributions.nextLamdba(l3, l4, engine) where these parameters represent those passed in this distribution's construction.
      Overrides:
      nextDouble in class DistributionsAdapter