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 | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | Array of points to cluster | ||
![]() |
inClusters | int | None | 2 - +![]() |
None | Number of clusters to extract |
![]() |
inMaxDistance | float | None | 0.0 - ![]() |
None | Maximum distance between two closest points in a cluster |
![]() |
outClusters | list[ list[Point2D] ] | Resulting Point2D clusters |



