gwr.gauss {spgwr} | R Documentation |
The function returns a matrix of weights using the Gaussian scheme:
w(g) = e^{{-(d/h)}^2}
where d are the distances between the observations and h is the bandwidth.
gwr.gauss(dist2, bandwidth)
dist2 |
matrix of squared distances between observations |
bandwidth |
bandwidth |
matrix of weights.
Roger Bivand Roger.Bivand@nhh.no
Fotheringham, A.S., Brunsdon, C., and Charlton, M.E., 2000, Quantitative Geography, London: Sage; C. Brunsdon, A.Stewart Fotheringham and M.E. Charlton, 1996, "Geographically Weighted Regression: A Method for Exploring Spatial Nonstationarity", Geographical Analysis, 28(4), 281-298; http://ncg.nuim.ie/ncg/GWR/index.htm
plot(seq(-10,10,0.1), gwr.gauss(seq(-10,10,0.1)^2, 3.5), type="l")