| SubsetSplit(Int32, Subset) Method |
Splits this subset into an arbitrary array of subsets.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public Subset[] Split(
int n,
Subset binIndices
)
Public Function Split (
n As Integer,
binIndices As Subset
) As Subset()
public:
array<Subset^>^ Split(
int n,
Subset^ binIndices
)
member Split :
n : int *
binIndices : Subset -> Subset[]
Parameters
- n Int32
- The number of subsets into which to split this subset.
- binIndices Subset
- A subset the same length as this subset, the ith
element of which indicates into which bin to place the ith element
of this subset.
Return Value
SubsetAn array of subsets.
Exceptions Example Subset mySub = new Subset( 10 );
Subset bins = new Subset( new int[] { 3, 1, 0, 2, 2, 1, 1, 2, 3, 0 } );
Subset[] subsetArray = mySub.Split( 4, bins );
See Also