geosnap.analyze.analytics.max_p

geosnap.analyze.analytics.max_p(X, w, threshold_variable='count', threshold=10, **kwargs)[source]

Max-p clustering algorithm [DAR12].

Parameters
Xarray_like

n x k attribute data

wlibpysal.weights.W instance

spatial weights matrix

threshold_variablestr, default:”count”

attribute variable to use as floor when calculate

thresholdint, default:10

integer that defines the upper limit of a variable that can be grouped into a single region

Returns
fitted cluster instance: region.p_regions.heuristics.MaxPRegionsHeu