Click or drag to resize

FourPointStepEvaluationCreateFromValues Method

Creates the step evaluation from the x-values of the left outer and inner point and the right inner and outer point.

Namespace: Altaxo.Science.Signals
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static FourPointStepEvaluation CreateFromValues(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	double xLeftOuter,
	double xLeftInner,
	double xRightInner,
	double xRightOuter,
	bool useRegressionForLeftAndRightLine,
	(double LowerLevel, double UpperLevel) middleRegressionLevels,
	bool throwOnError = true
)

Parameters

x  IReadOnlyListDouble
The x array.
y  IReadOnlyListDouble
The y array.
xLeftOuter  Double
The x-value of the left outer point.
xLeftInner  Double
The x-value of the left inner point.
xRightInner  Double
The x-value of the right inner point.
xRightOuter  Double
The x-value of the right outer point.
useRegressionForLeftAndRightLine  Boolean
If set to true, a full regression is used for the left and right line. If set to false, only the inner and outer points are used to form the line.
middleRegressionLevels  ValueTupleDouble, Double
The regression levels for the middle line. For instance, if the value is set to (0.25, 0.75), then all points between 25% and 75% distance from the left and right line are used for the regression of the middle line.
throwOnError  Boolean  (Optional)
If true, any error in the evaluation will throw an InvalidOperationException. If false, no exception is thrown; instead, the error is stored and can be read out using the property Errors.

Return Value

FourPointStepEvaluation
The result of the step evaluation.
See Also