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.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public int[] GetClusterMembership()
Public Function GetClusterMembership As Integer()
public:
array<int>^ GetClusterMembership()
member GetClusterMembership : unit -> int[]
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