R/f2fpds.R

"f2fpds" <-
function(f, rate=NA) {
   if(is.na(rate)) return(f)
   if(! check.fs(f)) return(FALSE)
   if(rate <= 0) {
      warning("invalid rate ? <= 0 parameter")
      return(rep(NA,length(f)))
   }
   g <- (log(f) + rate) / rate
   g[g < 0] <- NA
   g[g > 1] <- NA
   return(g)
}

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.