Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gwr.gauss

GWR Gaussian weights function


Description

The gwr.gauss function returns a vector 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.

The default (from release 0.5) gwr.Gauss function returns a vector of weights using the Gaussian scheme:

w(g) = e^{-(1/2) {{(d/h)}^2}}

Usage

gwr.gauss(dist2, bandwidth)
gwr.Gauss(dist2, bandwidth)

Arguments

dist2

vector of squared distances between observations and fit point

bandwidth

bandwidth

Value

vector of weights.

Author(s)

Roger Bivand Roger.Bivand@nhh.no

References

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://gwr.nuim.ie/

See Also

Examples

plot(seq(-10,10,0.1), gwr.Gauss(seq(-10,10,0.1)^2, 3.5), type="l")

spgwr

Geographically Weighted Regression

v0.6-34
GPL (>= 2)
Authors
Roger Bivand [cre, aut] (<https://orcid.org/0000-0003-2392-6140>), Danlin Yu [aut], Tomoki Nakaya [ctb], Miquel-Angel Garcia-Lopez [ctb]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.