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
- w
libpysal.weights.W
instance spatial weights matrix
- threshold_variable
str
, default:”count” attribute variable to use as floor when calculate
- threshold
int
, 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
- fitted cluster instance: