umontreal.iro.lecuyer.randvar
Class FatigueLifeGen
- java.lang.Object
-
- umontreal.iro.lecuyer.randvar.RandomVariateGen
-
- umontreal.iro.lecuyer.randvar.FatigueLifeGen
-
public class FatigueLifeGen extends RandomVariateGen
This class implements random variate generators for the fatigue life distribution with location parameter μ, scale parameter β and shape parameter γ. The density function of this distribution isf (x) = [(((x - μ)/β)1/2 + (β/(x - μ))1/2)/(2γ(x - μ))]φ((((x - μ)/β)1/2 - (β/(x - μ))1/2)/γ), x > μwhere φ is the probability density of the standard normal distribution.
-
-
Constructor Summary
Constructors Constructor and Description FatigueLifeGen(RandomStream s, double mu, double beta, double gamma)Creates a fatigue life random variate generator with parameters μ = mu, β = beta and γ = gamma, using stream s.FatigueLifeGen(RandomStream s, FatigueLifeDist dist)Creates a new generator for the distribution dist, using stream s.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetBeta()Returns the parameter β of this object.doublegetGamma()Returns the parameter γ of this object.doublegetMu()Returns the parameter μ of this object.static doublenextDouble(RandomStream s, double mu, double beta, double gamma)Generates a variate from the fatigue life distribution with location parameter μ, scale parameter β and shape parameter γ.-
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString
-
-
-
-
Constructor Detail
-
FatigueLifeGen
public FatigueLifeGen(RandomStream s, double mu, double beta, double gamma)
Creates a fatigue life random variate generator with parameters μ = mu, β = beta and γ = gamma, using stream s.
-
FatigueLifeGen
public FatigueLifeGen(RandomStream s, FatigueLifeDist dist)
Creates a new generator for the distribution dist, using stream s.
-
-
Method Detail
-
nextDouble
public static double nextDouble(RandomStream s, double mu, double beta, double gamma)
Generates a variate from the fatigue life distribution with location parameter μ, scale parameter β and shape parameter γ.
-
getBeta
public double getBeta()
Returns the parameter β of this object.
-
getGamma
public double getGamma()
Returns the parameter γ of this object.
-
getMu
public double getMu()
Returns the parameter μ of this object.
-
-
DMelt 3.0 © DataMelt by jWork.ORG