R/gaus.R

"gaus" <-
  function(numax, deltanu, nu, nupower = 1) {
    arg <- (2 * (nu - numax)) / deltanu
    if (nupower != 1) {
      res <- nu^nupower * exp(-log(2) * ((2 * (nu - numax)) / deltanu)^2)
    } else {
      res <- exp(-log(2) * ((2 * (nu - numax)) / deltanu)^2)
    }

    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.