Result of Spatex.Region.ward_spatial/3.
labels- cluster of each area, numbered like scikit-learn does.children- the merge tree: mergeijoins nodes{a, b}(a < b) into noden + i. With largen_clustersscikit-learn stops the tree early and onlyn - n_clustersmerges are present.distances-sqrt(2 * inertia)of every merge. They are not monotone, because only neighboring clusters can merge.n_connected_components- components of the input graph. Above one, the graph was completed with links between the most similar areas of each pair of components (in attribute space, as scikit-learn does).n_leaves- number of areas.warnings- messages equivalent to scikit-learn's warnings.
Summary
Types
@type t() :: %Spatex.Region.Ward{ children: [{non_neg_integer(), non_neg_integer()}], distances: [float()], labels: [non_neg_integer()], n_connected_components: pos_integer(), n_leaves: pos_integer(), warnings: [String.t()] }