umontreal.iro.lecuyer.randvar
Class NormalInverseGaussianGen
- java.lang.Object
-
- umontreal.iro.lecuyer.randvar.RandomVariateGen
-
- umontreal.iro.lecuyer.randvar.NormalInverseGaussianGen
-
- Direct Known Subclasses:
- NormalInverseGaussianIGGen
public class NormalInverseGaussianGen extends RandomVariateGen
This class implements random variate generators for the normal inverse gaussian (NIG) distribution. See the definition ofNormalInverseGaussianDist
-
-
Constructor Summary
Constructors Constructor and Description NormalInverseGaussianGen(RandomStream s, double alpha, double beta, double mu, double delta)Creates an normal inverse gaussian random variate generator with parameters α = alpha, β = beta, μ = mu and δ = delta, using stream s.NormalInverseGaussianGen(RandomStream s, NormalInverseGaussianDist 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 doublegetAlpha()Returns the parameter α of this object.doublegetBeta()Returns the parameter β of this object.doublegetDelta()Returns the parameter δ of this object.doublegetMu()Returns the parameter μ of this object.static doublenextDouble(RandomStream s, double alpha, double beta, double mu, double delta)NOT IMPLEMENTED.voidsetParams(double alpha, double beta, double mu, double delta)Sets the parameters α, β, μ and δ of this object.-
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString
-
-
-
-
Constructor Detail
-
NormalInverseGaussianGen
public NormalInverseGaussianGen(RandomStream s, double alpha, double beta, double mu, double delta)
Creates an normal inverse gaussian random variate generator with parameters α = alpha, β = beta, μ = mu and δ = delta, using stream s.
-
NormalInverseGaussianGen
public NormalInverseGaussianGen(RandomStream s, NormalInverseGaussianDist dist)
Creates a new generator for the distribution dist, using stream s.
-
-
Method Detail
-
nextDouble
public static double nextDouble(RandomStream s, double alpha, double beta, double mu, double delta)
NOT IMPLEMENTED. Use the daughter classes.
-
getAlpha
public double getAlpha()
Returns the parameter α of this object.
-
getBeta
public double getBeta()
Returns the parameter β of this object.
-
getMu
public double getMu()
Returns the parameter μ of this object.
-
getDelta
public double getDelta()
Returns the parameter δ of this object.
-
setParams
public void setParams(double alpha, double beta, double mu, double delta)Sets the parameters α, β, μ and δ of this object.
-
-
DMelt 3.0 © DataMelt by jWork.ORG