|
SSJ
3.3.1
Stochastic Simulation in Java
|
This class implements a normal inverse gaussian ( \({NIG}\)) random variate generator by using a normal generator ( \(N\)) and an inverse gaussian generator ( \(IG\)), as described in the following [239], [103] . More...
Public Member Functions | |
| NormalInverseGaussianIGGen (InverseGaussianGen ig, NormalGen ng, double beta, double mu) | |
Creates a normal inverse gaussian random variate generator with parameters \(\alpha\), \(\beta\) = beta, \(\mu\) = mu and \(\delta\), using generators ig and ng, as described in eq. More... | |
| double | nextDouble () |
Public Member Functions inherited from NormalInverseGaussianGen | |
| NormalInverseGaussianGen (RandomStream s, double alpha, double beta, double mu, double delta) | |
Creates an normal inverse gaussian random variate generator with parameters \(\alpha\) = alpha, \(\beta\) = beta, \(\mu\) = mu and \(\delta\) = delta, using stream s. | |
| NormalInverseGaussianGen (RandomStream s, NormalInverseGaussianDist dist) | |
Creates a new generator for the distribution dist, using stream s. | |
| double | getAlpha () |
| Returns the parameter \(\alpha\) of this object. | |
| double | getBeta () |
| Returns the parameter \(\beta\) of this object. | |
| double | getMu () |
| Returns the parameter \(\mu\) of this object. | |
| double | getDelta () |
| Returns the parameter \(\delta\) of this object. | |
| void | setParams (double alpha, double beta, double mu, double delta) |
| Sets the parameters \(\alpha\), \(\beta\), \(\mu\) and \(\delta\) of this object. | |
Public Member Functions inherited from RandomVariateGen | |
| RandomVariateGen (RandomStream s, Distribution dist) | |
Creates a new random variate generator from the distribution dist, using stream s. More... | |
| double | nextDouble () |
| Generates a random number from the continuous distribution contained in this object. More... | |
| void | nextArrayOfDouble (double[] v, int start, int n) |
Generates n random numbers from the continuous distribution contained in this object. More... | |
| double [] | nextArrayOfDouble (int n) |
Generates n random numbers from the continuous distribution contained in this object, and returns them in a new array of size n. More... | |
| RandomStream | getStream () |
| Returns the umontreal.ssj.rng.RandomStream used by this generator. More... | |
| void | setStream (RandomStream stream) |
Sets the umontreal.ssj.rng.RandomStream used by this generator to stream. | |
| Distribution | getDistribution () |
| Returns the umontreal.ssj.probdist.Distribution used by this generator. More... | |
| String | toString () |
Returns a String containing information about the current generator. | |
Static Public Member Functions | |
| static double | nextDouble (InverseGaussianGen ig, NormalGen ng, double beta, double mu) |
Generates a new variate from the normal inverse gaussian distribution with parameters \(\alpha\), \(\beta\) = beta, \(\mu\) = mu and \(\delta\), using generators ig and ng, as described in eq. More... | |
Static Public Member Functions inherited from NormalInverseGaussianGen | |
| static double | nextDouble (RandomStream s, double alpha, double beta, double mu, double delta) |
| NOT IMPLEMENTED. More... | |
Protected Member Functions | |
| void | setParams (InverseGaussianGen ig, NormalGen ng, double beta, double mu) |
Additional Inherited Members | |
Protected Attributes inherited from NormalInverseGaussianGen | |
| double | mu |
| double | delta = -1.0 |
| double | alpha = -1.0 |
| double | beta = -2.0 |
| double | gamma = -1.0 |
Protected Attributes inherited from RandomVariateGen | |
| RandomStream | stream |
| Distribution | dist |
This class implements a normal inverse gaussian ( \({NIG}\)) random variate generator by using a normal generator ( \(N\)) and an inverse gaussian generator ( \(IG\)), as described in the following [239], [103] .
\begin{align} Y & \sim {IG}(\delta/\gamma, \delta^2) \tag{nig2} \\ X \mid(Y=y) & \sim N(\mu+ \beta y, y). \nonumber \end{align}
The normal \(N(\mu, \sigma^2)\) has mean \(\mu\) and variance \(\sigma^2\), while the inverse gaussian has the parametrization described in equation ( fInverseGaussian ). If \(\gamma= \sqrt{\alpha^2 - \beta^2}\) with \(0 \le|\beta| < \alpha\) and \(\delta>0\), then \(X \sim{NIG}(\alpha, \beta, \mu, \delta)\).
| NormalInverseGaussianIGGen | ( | InverseGaussianGen | ig, |
| NormalGen | ng, | ||
| double | beta, | ||
| double | mu | ||
| ) |
Creates a normal inverse gaussian random variate generator with parameters \(\alpha\), \(\beta\) = beta, \(\mu\) = mu and \(\delta\), using generators ig and ng, as described in eq.
( nig2 ). The parameters \(\alpha\) and \(\delta\) are included in generator ig.
|
static |
Generates a new variate from the normal inverse gaussian distribution with parameters \(\alpha\), \(\beta\) = beta, \(\mu\) = mu and \(\delta\), using generators ig and ng, as described in eq.
( nig2 ). The parameters \(\alpha\) and \(\delta\) are included in generator ig.
1.8.14