Reorders the rows in this data frame according to the given permutation array.

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

Syntax

C#
public DataFrame PermuteRows(
	params int[] rowIndices
)
Visual Basic (Declaration)
Public Function PermuteRows ( _
	ParamArray rowIndices As Integer() _
) As DataFrame
Visual C++
public:
DataFrame^ PermuteRows(
	... array<int>^ rowIndices
)

Parameters

rowIndices
Type: array< System..::.Int32 >[]()[]
The permutation array of row indices.

Return Value

This data frame.

Remarks

Row[ permutation[i] ] is set to the ith row in the orginal data frame. Permutation array must be the same length as the column length.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the number of row indices in the permutation array is not equal to the number of rows in this data frame, or if the permutation array does not contain unique indices.

See Also