MultivariateSampleColumns(IReadOnlyListInt32) Method

Gets the indicated columns as a multivariate sample.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public MultivariateSample Columns(
	IReadOnlyList<int> columnIndexes
)

Parameters

columnIndexes  IReadOnlyListInt32
A list of column indexes.

Return Value

MultivariateSample
A read-only MultivariateSample consisting of the indicated columns.

Remarks

Use this method to perform multivariate analyses, such as regression and principal component analysis, using only a subset of the variables in the original multivariate sample.

Note that this is a fast operation, which does not create independent copies of the columns.

See Also