Click or drag to resize
ClusterKMeansGetClusterMembership Method
Returns the cluster membership for each observation. Note that the Compute method must be invoked first before invoking this method. Otherwise, the method throws a NullReferenceException exception.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public int[] GetClusterMembership()

Return Value

Type: Int32
An int array containing the cluster membership for each observation.
Remarks

Cluster membership 1 indicates the observation belongs to cluster 1, cluster membership 2 indicates the observation belongs to cluster 2, etc.

See Also