Learn R Programming

accessibility (version 1.4.0)

decay_power: Inverse power decay function

Description

Returns an inverse power weighting function to be used inside accessibility calculating functions.

This function is generic over any kind of numeric travel cost, such as distance, time and money.

Usage

decay_power(decay_value)

Value

A function that takes a generic travel cost vector (numeric) as an input and returns a list of weight vectors (a list of numeric

vectors, named after the arguments passed to the decay function).

Arguments

decay_value

A numeric vector. The calibration parameters to be used as the exponents in the inverse power function.

See Also

Other decay functions: decay_binary(), decay_exponential(), decay_linear(), decay_logistic(), decay_stepped()

Examples

Run this code
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true")
weighting_function <- decay_power(decay_value = 0.1)

weighting_function(c(20, 35))

weighting_function <- decay_power(decay_value = c(0.1, 0.2))

weighting_function(c(20, 35))
}

Run the code above in your browser using DataLab