You are here: Start » FIL.NET » Invoke.ClusterPoints2D
Clusters 2D points using K Means Clustering method.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void ClusterPoints2D ( List<Fil.Point2D> inPoints, int inClusters, int inMaxIterations, Optional<int> inSeed, int inRunCount, List<Conditional<List<Fil.Point2D>>> outClusters, List<Conditional<Fil.Point2D>> outCentroids, out float outDistanceSum )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.List<Fil.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. |
![]() | inSeed | Ftl.Optional<int> | <0, +INF> | 5489 | Seed used to initialize random number generators. Default value: 5489. |
![]() | inRunCount | int | <1, +INF> | 1 | Defines how many times the algorithm will be executed. Default value: 1. |
![]() | outClusters | System.Collections.Generic.List<Ftl.Conditional<System.Collections.Generic.List<Fil.Point2D>>> | Resulting Point2D clusters. | ||
![]() | outCentroids | System.Collections.Generic.List<Ftl.Conditional<Fil.Point2D>> | Center of found clusters. | ||
![]() | outDistanceSum | float | Sum of distance squares from points in array to its respective cluster center. |