Documentation of 'umontreal.iro.lecuyer.randvar.WeibullGen' Java class
WeibullGen
umontreal.iro.lecuyer.randvar

Class WeibullGen



  • public class WeibullGen
    extends RandomVariateGen
    This class implements random variate generators for the Weibull distribution. Its density is

    f (x) = αλα(x - δ)α-1exp[- (λ(x - δ))α]         for x > δ,

    and f (x) = 0 elsewhere, where α > 0, and λ > 0.

    The (non-static) nextDouble method simply calls inverseF on the distribution.

    • Constructor Summary

      Constructors 
      Constructor and Description
      WeibullGen(RandomStream s, double alpha)
      Creates a Weibull random variate generator with parameters α = alpha, λ = 1 and δ = 0, using stream s.
      WeibullGen(RandomStream s, double alpha, double lambda, double delta)
      Creates a Weibull random variate generator with parameters α = alpha, λ = lambda and δ = delta, using stream s.
      WeibullGen(RandomStream s, WeibullDist dist)
      Creates a new generator for the Weibull distribution dist and stream s.
    • Constructor Detail

      • WeibullGen

        public WeibullGen(RandomStream s,
                          double alpha,
                          double lambda,
                          double delta)
        Creates a Weibull random variate generator with parameters α = alpha, λ = lambda and δ = delta, using stream s.
      • WeibullGen

        public WeibullGen(RandomStream s,
                          double alpha)
        Creates a Weibull random variate generator with parameters α = alpha, λ = 1 and δ = 0, using stream s.
      • WeibullGen

        public WeibullGen(RandomStream s,
                          WeibullDist dist)
        Creates a new generator for the Weibull distribution dist and stream s.
    • Method Detail

      • nextDouble

        public static double nextDouble(RandomStream s,
                                        double alpha,
                                        double lambda,
                                        double delta)
        Uses inversion to generate a new variate from the Weibull distribution with parameters α = alpha, λ = lambda, and δ = delta, using stream s.
      • getAlpha

        public double getAlpha()
        Returns the parameter α.
      • getLambda

        public double getLambda()
        Returns the parameter λ.
      • getDelta

        public double getDelta()
        Returns the parameter δ.
      • setParams

        public void setParams(double alpha,
                              double lambda,
                              double delta)
        Sets the parameters α, λ and δ for this object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.