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
- wPySAL 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
- model: region MaxPRegionsHeu instance