R/dEXP.R

Defines functions dEXP

Documented in dEXP

dEXP <-
function(x, alpha=1, log=FALSE)
{
if(alpha<0) stop("alphamust be less than 0")
log.f<-log(alpha)+(alpha-1)*log(x)
if(log == FALSE) fy <- exp(log.f)
else fy <- log.f
fy <- ifelse(x <= 0 | x>=1, 0, fy)
fy
}

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.