Class DistributionsAdapter

  • All Implemented Interfaces:
    cern.colt.function.DoubleFunction, cern.colt.function.IntFunction, Serializable, Cloneable
    Direct Known Subclasses:

    public class DistributionsAdapter
    extends cern.jet.random.AbstractDistribution
    A wrapper around the Distributions 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's nextDouble() method always throws an UnsupportedOperationException.

    Jerry Vos
    See Also:
    Lambda, Serialized Form
    • Constructor Detail

      • DistributionsAdapter

        public DistributionsAdapter​(cern.jet.random.engine.RandomEngine randomGenerator)
        Constructs this with the specified random number generator
        randomGenerator - the random number generator
    • Method Detail

      • nextLamdba

        public double nextLamdba​(double l3,
                                 double l4)
        Calls the distribution with the specified parameters and this distributions random generator.
        l3 - the distribution's l3 parameter
        l4 - the distribution's l3 parameter
        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)