FourPointStepEvaluationGetLeftRightRegression Method |
Gets the regression for the left or the right line.
Namespace: Altaxo.Science.SignalsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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
QuickLinearRegressionThe regression that forms a line (either the left line of the step or the right line).
See Also