Click or drag to resize

FourPointStepEvaluationGetLeftRightRegression Method

Gets the regression for the left or the right line.

Namespace: Altaxo.Science.Signals
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static QuickLinearRegression GetLeftRightRegression(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	double index1,
	double index2,
	bool useAllPointsForRegression
)

Parameters

x  IReadOnlyListDouble
The x values.
y  IReadOnlyListDouble
The y values.
index1  Double
The start index.
index2  Double
The end index (inclusive).
useAllPointsForRegression  Boolean
If set to true, all points from index1 to index2 are used to create the linear regression; otherwise, only point[index1] and point[index2] are used to calculate the line.

Return Value

QuickLinearRegression
The regression that forms a line (either the left line of the step or the right line).
See Also