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 May 2, 2019, 5:55 p.m.