Package repast.simphony.random
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
A simple wrapper around
Distributions.nextLambda(double, double, RandomEngine)
.- Author:
- Jerry Vos
- See Also:
-
Field Summary
Fields inherited from class cern.jet.random.AbstractDistribution
randomGenerator
-
Constructor Summary
ConstructorDescriptionLambda
(double l3, double l4, cern.jet.random.engine.RandomEngine engine) Constructs this distribution with the specified parameters to pass to theDistributions.nextLambda(double, double, RandomEngine)
method. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the result ofDistributions.nextLamdba(l3, l4, engine)
where these parameters represent those passed in this distribution's construction.Methods inherited from class repast.simphony.random.DistributionsAdapter
geometricPdf, nextBurr1, nextBurr2, nextCauchy, nextErlang, nextGeometric, nextLamdba, nextLaplace, nextLogistic, nextPowLaw, nextTriangular, nextWeibull, nextZipfInt
Methods inherited from class cern.jet.random.AbstractDistribution
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator
-
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 theDistributions.nextLambda(double, double, RandomEngine)
method.- Parameters:
l3
- the lambda'a l3 parameterl4
- the lambda'a l4 parameterengine
- the lambda's random engine
-
-
Method Details
-
nextDouble
public double nextDouble()Returns the result ofDistributions.nextLamdba(l3, l4, engine)
where these parameters represent those passed in this distribution's construction.- Overrides:
nextDouble
in classDistributionsAdapter
-