You are here: Start » AVL.NET » AVL.ClusterPoints2D Method
AVL.ClusterPoints2D Method
Clusters 2D points using K Means Clustering method.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void ClusterPoints2D( AvlNet.Point2D[] inPoints, int inClusters, int inMaxIterations, out AvlNet.Point2D[][] outClusters, out System.Nullable<AvlNet.Point2D>[] outCentroids, out float outDistanceSum )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | AvlNet.Point2D | Array of points to cluster. | |||
inClusters | int | <2, +INF> | 2 | Number of clusters to extract. Default value: 2. | |
inMaxIterations | int | <10, 1000> | 200 | Maximal number of KMeans iterations. Default value: 200. | |
outClusters | AvlNet.Point2D | Resulting Point2D clusters. | |||
outCentroids | AvlNet.Point2D? | Center of found clusters. | |||
outDistanceSum | float | Sum of distance squares from points in array to its respective cluster center. |