jhplot.math.num.random
Class WeibullRandomVariable

java.lang.Object
  extended by jhplot.math.num.random.AbstractContinuousRandomVariable
      extended by jhplot.math.num.random.WeibullRandomVariable
All Implemented Interfaces:
ContinuousRandomVariable

public class WeibullRandomVariable
extends AbstractContinuousRandomVariable

A random variable generator for the Weibull distribution.

References:

  1. Wikipedia contributors, "Weibull Distribution," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/wiki/Weibull_distribution

Since:
1.3

Constructor Summary
WeibullRandomVariable()
          Default constructor.
WeibullRandomVariable(double a, double b)
          Create a rnadom variable with the given shape and scale values.
WeibullRandomVariable(double a, double b, double c)
          Create a random variable with the given parameters.
WeibullRandomVariable(double a, double b, double c, RNG source)
          Create a random variable with the given parameters.
WeibullRandomVariable(double a, double b, RNG source)
          Create a random variable with the given shape and scale values.
 
Method Summary
 double nextRandomVariable()
          Access the next random variable from this generator.
static double nextRandomVariable(double shape, double scale, double location, RNG source)
          Access the next random variable using the given generator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeibullRandomVariable

public WeibullRandomVariable()
Default constructor. Shape and scale are both set to 1 and location is set to 0.


WeibullRandomVariable

public WeibullRandomVariable(double a,
                             double b)
Create a rnadom variable with the given shape and scale values. Location is set to 0.

Parameters:
a - the shape parameter.
b - the scale parameter.

WeibullRandomVariable

public WeibullRandomVariable(double a,
                             double b,
                             double c)
Create a random variable with the given parameters.

Parameters:
a - the shape parameter.
b - the scale parameter.
c - the location parameter.

WeibullRandomVariable

public WeibullRandomVariable(double a,
                             double b,
                             double c,
                             RNG source)
Create a random variable with the given parameters.

Parameters:
a - the shape parameter.
b - the scale parameter.
c - the location parameter.
source - the source generator.

WeibullRandomVariable

public WeibullRandomVariable(double a,
                             double b,
                             RNG source)
Create a random variable with the given shape and scale values. Location is set to 0.

Parameters:
a - the shape parameter.
b - the scale parameter.
source - the source generator.
Method Detail

nextRandomVariable

public static double nextRandomVariable(double shape,
                                        double scale,
                                        double location,
                                        RNG source)
Access the next random variable using the given generator.

Parameters:
shape - the shape parameter.
scale - the scale parameter.
location - the location parameter.
source - the source generator.
Returns:
the next random variable.

nextRandomVariable

public double nextRandomVariable()
Access the next random variable from this generator.

Returns:
the next random variable.


jHepWork 3.0 ©