inverse_distance_weight {gdverse} | R Documentation |
Function for calculate inverse distance weight.
inverse_distance_weight(locx, locy, power = 1, is_arc = FALSE)
locx |
The x axis location. |
locy |
The y axis location. |
power |
(optional) Default is 1. Set to 2 for gravity weights. |
is_arc |
(optional) FALSE (default) or TRUE, whether to compute arc distance. |
The inverse distance weight formula is
w_{ij} = 1 / d_{ij}^\alpha
A inverse distance weight matrices with class of matrix
.
Wenbo Lv lyu.geosocial@gmail.com
x = 1:10
y = 1:10
inverse_distance_weight(x,y)
inverse_distance_weight(x,y,is_arc = TRUE)