R/powers_ker.R

Defines functions powers_ker

Documented in powers_ker

powers_ker <-
function(imarks, jmarks, dists, dranks, par = list(pi=1, pj=1, pr=1, smark=1)) {
# A generalized competition kernel, (Sj^pj / Si^pi) / dist^pr
    with(as.list(par),
         (jmarks[smark]^pj / imarks[[smark]]^pi) / dists^pr
    )
}

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.