Click or drag to resize

MathRoutinesLinearRegression Method

LightningChart .NET Help
Calculate linear line fit for given points

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static double[] LinearRegression(
	double[] xInFactorization,
	double[] yInFactorization,
	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: Double
Fitted Y values, the length equals to xValuesToFit length. Returns null if failed.
See Also