GridSim 5.0 beta

gridsim.util
Class Weibull

Object
  extended by Variate
      extended by Weibull

public class Weibull
extends Variate

A random number generator based on the Weibull distribution.
NOTE: This class is taken from JSim.
Moreover, the Sim_poisson_obj.sample() method always return NaN value.

Since:
GridSim Toolkit 4.1

Constructor Summary
Weibull(double scale, double shape, int i)
          Constructs a Weibull random variate.
 
Method Summary
 double gen()
          Generates a random number from Weibull distribution.
 Double[] getParameters()
          Get the parameters of the constuctor
 
Methods inherited from class Variate
incStream
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Weibull

public Weibull(double scale,
               double shape,
               int i)
Constructs a Weibull random variate.

Parameters:
scale - scale parameter
shape - shape parameter
i - random number stream
Method Detail

getParameters

public Double[] getParameters()
Get the parameters of the constuctor

Overrides:
getParameters in class Variate

gen

public double gen()
Generates a random number from Weibull distribution.

Overrides:
gen in class Variate
Returns:
double random number from Weibull distribution

GridSim 5.0 beta

The University of Melbourne, Australia, 2009