R/skew.R

"skew" <-
  function(numax, deltanu, b, nu, nupower = 1) {
    arg <- 1 + (2 * b * (nu - numax)) / deltanu
    res <- arg
    res[which(arg > 0)] <- exp(-log(2) * (log(arg[which(arg > 0)]) / b)^2)
    res[which(arg <= 0)] <- 0
    if (nupower != 1) {
      res <- res * nu^nupower
    }

    res
  }

Try the TIMP package in your browser

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

TIMP documentation built on Dec. 28, 2022, 3:06 a.m.