gigrnd(P, a, b, sampleSize)

Implementation of new Devroye algorithm for sampling from the GIG(p,a,b) distribution.

You are now following this Submission

Implementation of the Devroye (2014) algorithm for sampling from the generalized inverse Gaussian (GIG) distribution.
References:
L. Devroye
Random variate generation for the generalized inverse Gaussian distribution
Statistics and Computing, Vol. 24, pp. 239-246, 2014.

Cite As

Statovic (2026). gigrnd(P, a, b, sampleSize) (https://www.mathworks.com/matlabcentral/fileexchange/53594-gigrnd-p-a-b-samplesize), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Weather and Atmospheric Science in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

-Fixed a problem with sampler when p < 0

1.0.0.0