You are here: Start » AVL.NET » AVL.ClusterPoints3D Method

AVL.ClusterPoints3D Method

Clusters 3D points using K Means Clustering method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ClusterPoints3D(
	AvlNet.Point3D[] inPoints,
	int inClusters,
	int inMaxIterations,
	out AvlNet.Point3D[][] outClusters,
	out System.Nullable<AvlNet.Point3D>[] outCentroids,
	out float outDistanceSum
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point3DArray of points to cluster.
inClustersint<2, +INF>2Number of clusters to extract. Default value: 2.
inMaxIterationsint<10, 1000>200Maximal number of KMeans iterations. Default value: 200.
outClustersAvlNet.Point3DResulting Point3D clusters.
outCentroidsAvlNet.Point3D?Center of found clusters.
outDistanceSumfloatSum of distance squares from points in array to its respective cluster center.

See also