groupData

Returns a copy of the observations assigned to the supplied group. This allocates, and is intended for handing a group to an estimator. Prefer the index accessors when only the range is needed.

Parameters

data

the sorted observations that this partition indexes, its size must equal the number of observations

group

the zero-based group index, must be within 0 until numGroups