Click or drag to resize

FourPointStepEvaluationGetMiddleRegression Method

Gets the middle regression line.

Namespace: Altaxo.Science.Signals
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static QuickLinearRegression GetMiddleRegression(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	double index1,
	double index2,
	QuickLinearRegression leftRegression,
	QuickLinearRegression rightRegression,
	double lowerRegressionLevel,
	double upperRegressionLevel
)

Parameters

x  IReadOnlyListDouble
The x values.
y  IReadOnlyListDouble
The y values.
index1  Double
The start index of the middle section.
index2  Double
The end index of the middle section.
leftRegression  QuickLinearRegression
The left regression line.
rightRegression  QuickLinearRegression
The right regression line.
lowerRegressionLevel  Double
The lower regression level (0..1). Usually, it is 0.25.
upperRegressionLevel  Double
The upper regression level (0..1). Usually, it is 0.75.

Return Value

QuickLinearRegression
The regression that forms the middle line of the step.
See Also