jhplot.math.num.random
Class WeibullRandomVariable
- java.lang.Object
-
- jhplot.math.num.random.AbstractContinuousRandomVariable
-
- jhplot.math.num.random.WeibullRandomVariable
-
- All Implemented Interfaces:
- ContinuousRandomVariable
public class WeibullRandomVariable extends AbstractContinuousRandomVariable
A random variable generator for the Weibull distribution.
References:
- Wikipedia contributors, "Weibull Distribution," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/wiki/Weibull_distribution
- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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.
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG