A function to calculate, with a negative exponential or Gaussian dispersal kernel.
w(s, a, kernel = c("exp", "gaussian"))A numeric scalar for a distance decay weight.
A numeric scalar indicating spatial distance at which the distance decay is referred
A numeric scalar indicating a decay coefficient
An option to select a negative exponential "exp" or Gaussian "gaussian" for a dispersal kernel of neighbor effects.
Yasuhiro Sato (sato.yasuhiro.36c@kyoto-u.jp)