Click or drag to resize

FourPointStepEvaluationCreateFromIndices Method

Creates a step evaluation from indices.

Namespace: Altaxo.Science.Signals
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static FourPointStepEvaluation CreateFromIndices(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	double indexLeftOuter,
	double indexLeftInner,
	double indexRightInner,
	double indexRightOuter,
	bool useRegressionForLeftAndRightLine,
	(double LowerLevel, double UpperLevel) middleRegressionLevels,
	bool throwOnError = true
)

Parameters

x  IReadOnlyListDouble
The x array.
y  IReadOnlyListDouble
The y array.
indexLeftOuter  Double
The index of the left outer point.
indexLeftInner  Double
The index of the left inner point.
indexRightInner  Double
The index of the right inner point.
indexRightOuter  Double
The index 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