R/rEXP2.R

Defines functions rEXP2

Documented in rEXP2

rEXP2 <-
function(n, alpha=1)
{
if (is.null(n)) stop("sample size must be specified")
if (round(n) != n | n <= 0) stop("sample size must be a positive integer")
if(alpha<0) stop("alpha must be less than 0")
qEXP2(runif(n), alpha)
}

Try the gentransmuted package in your browser

Any scripts or data that you put into this service are public.

gentransmuted documentation built on Aug. 8, 2025, 7:21 p.m.