FittingLinearRegression(IEnumerableDouble, IEnumerableDouble) Method |
Calculates the ordinary least squares linear regression for the given X and Y data.
Namespace: RelaxIS_SDK.libMathAssembly: RelaxIS SDK (in RelaxIS SDK.dll) Version: 3.0.23.63
Syntax public static FittingLinearRegressionResult LinearRegression(
IEnumerable<double> X,
IEnumerable<double> Y
)
Public Shared Function LinearRegression (
X As IEnumerable(Of Double),
Y As IEnumerable(Of Double)
) As FittingLinearRegressionResult
Dim X As IEnumerable(Of Double)
Dim Y As IEnumerable(Of Double)
Dim returnValue As FittingLinearRegressionResult
returnValue = Fitting.LinearRegression(X,
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
FittingLinearRegressionResultThe regression result as a
FittingLinearRegressionResultSee Also