|
#include nagmk26.h
|
(i) | if , a switching algorithm described by Dagpunar (1988) (called G6) is used. The target distributions are and , where , and the switching argument, , is taken as . This is similar to Ahrens and Dieter's GS algorithm (see Ahrens and Dieter (1974)) in which ; |
(ii) | if , the gamma distribution reduces to the exponential distribution and the method based on the logarithmic transformation of a uniform random variate is used; |
(iii) | if , the algorithm given by Best (1978) is used. This is based on using a Student's -distribution with two degrees of freedom as the target distribution in an envelope rejection method. |