This documentation is compiled for the latest release of Mathos Core Library
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
regression results if x and y have elements, otherwise returns null
An ArgumentException will be thrown if x and y are of different size
Computes simple linear regression
Namespace: Mathos.Statistics
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax
public static LinearModelsLinearRegressionResults LinearRegression( List<decimal> x, List<decimal> y )
Parameters
- x
- Type: System.Collections.GenericListDecimal
independent variable - y
- Type: System.Collections.GenericListDecimal
dependent variable
Return Value
Type: LinearModelsLinearRegressionResultsregression results if x and y have elements, otherwise returns null
Remarks
See Also