Power distance weights.

w_dist_power(x, alpha = 1)

Arguments

x

a geometry collection

alpha

exponent for distance weights

Examples

data("est_adm1") w <- w_dist_power(sf::st_geometry(est_adm1), alpha = 1) w
#> Spatial weights matrix [15 x 15] #> Type: Inverse distance (alpha = 1)
plot(w)