Click or drag to resize
MultivariateSampleTwoColumns Method
Gets the indicated columns as a BivariateSample.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public BivariateSample TwoColumns(
	int cx,
	int cy
)

Parameters

cx
Type: SystemInt32
The (zero-based) column index of the X variable.
cy
Type: SystemInt32
The (zero-based) column index of the Y variable.

Return Value

Type: BivariateSample
A read-only BivariateSample consisting of the indicated columns..
Remarks

Use this method to obtain information specific to the two columns, such as the Covariance, or to perform tests specific to the two columns, such as a PearsonRTest.

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

See Also