R/gates_inf.R

Defines functions gates_inf

Documented in gates_inf

gates_inf <-
function(dx, dy, marks, par=list(a=1, b=4, smark=1)) {
# Gates et al influence functions  [(s/b)^a - R^a]^(1/a) 
    with(as.list(par),
         pmax(0, marks[[smark]]^a - (b * sqrt(dx^2 + dy^2))^a)^(1/a)
    )
}

Try the siplab package in your browser

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

siplab documentation built on March 18, 2022, 6:53 p.m.