API reference

GWR Model Estimation and Inference

mgwr.gwr.GWR(coords, y, X, bw[, family, …]) Geographically weighted regression.
mgwr.gwr.GWRResults(model, params, predy, S, …) Basic class including common properties for all GWR regression models
mgwr.gwr.GWRResultsLite(model, resid, influ, …) Lightweight GWR that computes the minimum diagnostics needed for bandwidth selection

MGWR Estimation and Inference

mgwr.gwr.MGWR(coords, y, X, selector[, …]) Multiscale GWR estimation and inference.
mgwr.gwr.MGWRResults(model, params, predy, …) Class including common properties for a MGWR model.

Utility Functions

Kernel Specification

mgwr.kernels.fix_gauss
mgwr.kernels.adapt_gauss
mgwr.kernels.fix_bisquare
mgwr.kernels.adapt_bisquare
mgwr.kernels.fix_exp
mgwr.kernels.adapt_exp

Bandwidth Selection

mgwr.sel_bw.Sel_BW(coords, y, X_loc[, …]) Select bandwidth for kernel

Visualization

utils.shift_colormap(cmap[, start, …]) Function to offset the “center” of a colormap.
utils.truncate_colormap(cmap[, minval, …]) Function to truncate a colormap by selecting a subset of the original colormap’s values
utils.compare_surfaces(*args, **kwargs)