R/cdfexp.R

"cdfexp" <-
function(x,para) {
    if(! are.parexp.valid(para)) return()
    U <- para$para[1]
    A <- para$para[2]

    f <- vector(mode="numeric", length=length(x))
    Y <- (x-U)/A
    f <- 1-exp(-Y)

    f[Y <= 0] <- 0
    names(f) <- NULL
    return(f)
}

Try the lmomco package in your browser

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

lmomco documentation built on Aug. 30, 2023, 5:10 p.m.