IMSL C# Numerical Library

ClusterKMeans.GetClusterMembership 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.

public int[] GetClusterMembership();

Return Value

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

ClusterKMeans Class | Imsl.Stat Namespace