R/aspectAbs.R

Defines functions aspectAbs

aspectAbs <- function(r,pow = 1) {
list(f=sum(abs(r)^pow)/2,g=pow*sign(r)*(abs(r)^(pow-1)))
}

Try the aspect package in your browser

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

aspect documentation built on May 31, 2017, 1:53 a.m.