IMSL C# Numerical Library

TableMultiWay.GetGroups Method 

Returns the number of observations (rows) in each group.

public int[] GetGroups();

Return Value

A int array containing the number of observations (row) in each group.

Remarks

The number of groups is the length of the returned array. A group contains observations in x that are equal with respect to the method of comparison. If n contains the returned integer array, then the first n[0] rows of the sorted x are group number 1. The next n[1] rows of the sorted x are group number 2, etc. The last n[n.length - 1] rows of the sorted x are group number n.length.

See Also

TableMultiWay Class | Imsl.Stat Namespace