gauss_decay: Gaussian Decay function

Description Usage Arguments Value Examples

View source: R/gauss_decay.R

Description

This is a function that creates some decay between some distance and the maximum distance.

Usage

1
gauss_decay(d_kj, d_0)

Arguments

d_kj

Numeric. the distance from the centroid

d_0

Numeric. The maximum distance allowable, before setting to zero

Value

Numeric.

Examples

1
2
3
4
5
# Creates a large number
gauss_decay(1,100)

# Creates a small number
gauss_decay(99,100)

njtierney/decayr documentation built on May 6, 2019, 6:01 p.m.