Click or drag to resize

KMeansClusteringCluster(Int32) Method

Clusters the data into the specified number of clusters.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public ClusterSet Cluster(
	int k
)

Parameters

k  Int32
The number of clusters to form.

Return Value

ClusterSet
A ClusterSet that identifies the cluster into which each object was grouped. Cluster numbers are based on row indices in this.Data and this.Centers.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if k is less than one or greater than the number of objects (this.N).
NMathException Thrown if an empty cluster is encountered. Re-cluster with different starting centers.
Remarks
A random set of distinct rows in this.Data are chosen as the initial centers.
See Also