MathRoutinesLinearRegression Method |
LightningChart .NET Help
Calculate linear line fit for given points
Namespace:
Arction.Wpf.ChartingMVVM
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic static double[] LinearRegression(
double[] xInFactorization,
double[] yInFactorization,
double[] xValuesToFit
)
Public Shared Function LinearRegression (
xInFactorization As Double(),
yInFactorization As Double(),
xValuesToFit As Double()
) As Double()
public:
static array<double>^ LinearRegression(
array<double>^ xInFactorization,
array<double>^ yInFactorization,
array<double>^ xValuesToFit
)
Parameters
- xInFactorization
- Type: SystemDouble
X values that are used to calculate the factors. This is the point set where the regression line is fitted to. - yInFactorization
- Type: SystemDouble
Y values that are used to calculate the factors. Length must be equal to xInFactorization length. - xValuesToFit
- Type: SystemDouble
X values whose Y values are to be solved, using the factors
Return Value
Type:
DoubleFitted Y values, the length equals to xValuesToFit length. Returns null if failed.
See Also