View source: R/decay_exponential.R
| decay_exponential | R Documentation |
Returns a negative exponential 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.
decay_exponential(decay_value)
decay_value |
A |
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).
Other decay functions:
decay_binary(),
decay_linear(),
decay_logistic(),
decay_power(),
decay_stepped()
weighting_function <- decay_exponential(decay_value = 0.1)
weighting_function(c(20, 30))
weighting_function <- decay_exponential(decay_value = c(0.1, 0.2))
weighting_function(c(20, 30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.