Click or drag to resize

FittingLinearRegression(IEnumerableDouble, IEnumerableDouble) Method

Calculates the ordinary least squares linear regression for the given X and Y data.

Namespace: RelaxIS_SDK.libMath
Assembly: RelaxIS SDK (in RelaxIS SDK.dll) Version: 3.0.23.63
Syntax
public static FittingLinearRegressionResult LinearRegression(
	IEnumerable<double> X,
	IEnumerable<double> Y
)

Parameters

X  IEnumerableDouble
The X data. It should be the same length as Y.
Y  IEnumerableDouble
The Y data. It should be the same length as X.

Return Value

FittingLinearRegressionResult
The regression result as a FittingLinearRegressionResult
See Also