Splits this subset into the specified number of equally-sized subsets.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public Subset[] Split(
	int n
)
Visual Basic (Declaration)
Public Function Split ( _
	n As Integer _
) As Subset()
Visual C++
public:
array<Subset^>^ Split(
	int n
)

Parameters

n
Type: System..::.Int32
The number of subsets into which to split this subset.

Return Value

An array of n subsets, each containing this.Length / n indices.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if n does not divide this.Length equally.

See Also