w: Calculating a distance decay weight

Description Usage Arguments Value Author(s)

View source: R/w.R

Description

A function to calculate, with a negative exponential or Gaussian dispersal kernel.

Usage

1
w(s, a, kernel = c("exp", "gaussian"))

Arguments

s

A numeric scalar indicating spatial distance at which the distance decay is referred

a

A numeric scalar indicating a decay coefficient

kernel

An option to select a negative exponential "exp" or Gaussian "gaussian" for a dispersal kernel of neighbor effects.

Value

A numeric scalar for a distance decay weight.

Author(s)

Yasuhiro Sato (sato.yasuhiro.36c@kyoto-u.jp)


rNeighborGWAS documentation built on May 10, 2021, 5:07 p.m.