Scythe-1.0.3
template<class RNGTYPE>
double scythe::rng< RNGTYPE >::rtbnorm_combo ( double  mean,
double  variance,
double  below,
unsigned int  iter = 10 
) [inline]

Generate a normally distributed random variate, truncated below.

This function returns a pseudo-random variate drawn from the normal distribution with given mean and variance, truncated below. It uses a combination of rejection sampling (when mean >= below) and the slice sampling method of Robert and Casella (1999), pp. 288-289 (when mean < below).

Parameters:
meanThe mean of the distribution.
varianceThe variance of the distribution.
belowThe lower truncation point of the distribution.
iterThe number of iterations to run the slice sampler.
See also:
rtnorm(double mean, double variance, double below, double above)
rtnorm_combo(double mean, double variance, double below, double above)
rtbnorm_slice(double mean, double variance, double below, unsigned int iter = 10)
rtanorm_slice(double mean, double variance, double above, unsigned int iter = 10)
rtanorm_combo(double mean, double variance, double above, unsigned int iter = 10)
rnorm(double x, double mean, double sd)
Exceptions:
scythe_invalid_arg(Level 1)