Reorders the columns 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 PermuteColumns(
	params int[] colIndices
)
Visual Basic (Declaration)
Public Function PermuteColumns ( _
	ParamArray colIndices As Integer() _
) As DataFrame
Visual C++
public:
DataFrame^ PermuteColumns(
	... array<int>^ colIndices
)

Parameters

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

Return Value

This data frame.

Exceptions

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

See Also