Click or drag to resize

TwoPolynomialSegmentsEvaluate(Double, Double, Double, ReadOnlySpanDouble, ReadOnlySpanDouble) Method

Evaluates the function for the specified x value.

Namespace: Altaxo.Calc.FitFunctions.General
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double Evaluate(
	double x,
	double xc,
	double y0,
	ReadOnlySpan<double> coeffs_left,
	ReadOnlySpan<double> coeffs_right
)

Parameters

x  Double
The x value.
xc  Double
The xc value which is the x-value of the transition between the two segments.
y0  Double
The y0 value of the transition. This is the y-value of the curve at xc if the transition is sharp (sigma == 0).
coeffs_left  ReadOnlySpanDouble
The polynomial coefficients of the left polynomial (order 1, order 2, ...).
coeffs_right  ReadOnlySpanDouble
The polynomial coefficients of the right polynomial (order1, order 2, ...).

Return Value

Double
The y value of the function at x.
See Also