Package repast.simphony.random
Class DistributionsAdapter
- java.lang.Object
-
- cern.colt.PersistentObject
-
- cern.jet.random.AbstractDistribution
-
- repast.simphony.random.DistributionsAdapter
-
- All Implemented Interfaces:
cern.colt.function.DoubleFunction
,cern.colt.function.IntFunction
,Serializable
,Cloneable
- Direct Known Subclasses:
Lambda
public class DistributionsAdapter extends cern.jet.random.AbstractDistribution
A wrapper around theDistributions
class. Instances of this class will implement the nextMethod and most likely have it delegate to some specific nextXYZ method. For instance, the Lambda subclass delegates to the nextLambda method. This class'snextDouble()
method always throws anUnsupportedOperationException
.- Author:
- Jerry Vos
- See Also:
Lambda
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DistributionsAdapter(cern.jet.random.engine.RandomEngine randomGenerator)
Constructs this with the specified random number generator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
geometricPdf(int k, double p)
double
nextBurr1(double r, int nr)
double
nextBurr2(double r, double k, int nr)
double
nextCauchy()
double
nextDouble()
Throws anUnsupportedOperationException
.double
nextErlang(double variance, double mean)
double
nextGeometric(double p)
double
nextLamdba(double l3, double l4)
Calls the distribution with the specified parameters and this distributions random generator.double
nextLaplace()
double
nextLogistic()
double
nextPowLaw(double alpha, double cut)
double
nextTriangular()
double
nextWeibull(double alpha, double beta)
double
nextZipfInt(double z)
-
-
-
Method Detail
-
nextDouble
public double nextDouble() throws UnsupportedOperationException
Throws anUnsupportedOperationException
.- Specified by:
nextDouble
in classcern.jet.random.AbstractDistribution
- Throws:
UnsupportedOperationException
-
nextLamdba
public double nextLamdba(double l3, double l4)
Calls the distribution with the specified parameters and this distributions random generator.- Parameters:
l3
- the distribution's l3 parameterl4
- the distribution's l3 parameter- Returns:
- the value from
Distributions.nextLambda(double, double, RandomEngine)
-
geometricPdf
public double geometricPdf(int k, double p)
-
nextBurr1
public double nextBurr1(double r, int nr)
-
nextBurr2
public double nextBurr2(double r, double k, int nr)
-
nextCauchy
public double nextCauchy()
-
nextErlang
public double nextErlang(double variance, double mean)
-
nextGeometric
public double nextGeometric(double p)
-
nextLaplace
public double nextLaplace()
-
nextLogistic
public double nextLogistic()
-
nextPowLaw
public double nextPowLaw(double alpha, double cut)
-
nextTriangular
public double nextTriangular()
-
nextWeibull
public double nextWeibull(double alpha, double beta)
-
nextZipfInt
public double nextZipfInt(double z)
-
-