Description Usage Arguments Author(s) Examples
Inverse power function
Calculate the cost of distances based on an inverse power law
1 | inverse_power(dists, power = 2)
|
dists |
a vector or matrix of distances |
power |
the power to be used; default 2 |
Daniel Knitter <knitter@geographie.uni-kiel.de>
1 2 3 | distmat <- matrix(runif(n=64),8,8)
diag(distmat) <- 0
inverse_power(distmat, power = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.