MultivariateSampleColumn Method

Gets the indicated column as a univariate Sample.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public Sample Column(
	int c
)

Parameters

c  Int32
The (zero-based) column index.

Return Value

Sample
A read-only Sample containing all values in the indicated column.

Remarks

Use this method to obtain column-specific information, such as the Median or Variance of the column.

Note that this is a fast, O(1) operation, which does not create an independent copy of the column. The advantage of this is that you can access columns as independent samples as often as you like without worrying about performance. The disadvantage of this is that the returned sample cannot be altered. If you need to alter values in a column independent of the multi-variate sample, use the Copy method to obtain an independent copy of the column.

See Also