ClusterPoints2D_SingleLink


Clusters data using hierarchical single-link algorithm.

Syntax

C++
C#
Python
 
def ClusterPoints2D_SingleLink(
	inPoints: list[Point2D],
	/,
	*,
	inClusters: int | None = None,
	inMaxDistance: float | None = None
)
-> outClusters: list[ list[Point2D] ]

Parameters

Name Type Range Default Description
Input value inPoints list[Point2D] Array of points to cluster
Input value inClusters int | None 2 - + None Number of clusters to extract
Input value inMaxDistance float | None 0.0 - None Maximum distance between two closest points in a cluster
Output value outClusters list[ list[Point2D] ] Resulting Point2D clusters