ErrorFunctionFromToEvaluate(Double, Double, Double, ReadOnlySpanDouble, ReadOnlySpanDouble) Method |
Evaluates a smoothed step function that transitions from a left polynomial to a right polynomial value using an error
function profile.
Namespace: Altaxo.Calc.FitFunctions.TransitionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static double Evaluate(
double x,
double xc,
double sigma,
ReadOnlySpan<double> coeffs_left,
ReadOnlySpan<double> coeffs_right
)
Parameters
- x Double
- The input value at which to evaluate the function.
- xc Double
- The center point of the transition, where the function value is halfway between the starting and ending values.
- sigma Double
- The standard deviation that controls the width of the transition region. Must be positive.
- coeffs_left ReadOnlySpanDouble
- The coefficients of the polynomial for the left segment (before the transition).
- coeffs_right ReadOnlySpanDouble
- The coefficients of the polynomial for the right segment (after the transition).
Return Value
DoubleThe value of the smoothed step function at the specified input value.
RemarksThis function produces a continuous transition from the left to the right polynomial,
centered at xc, with the width of the transition determined by sigma. It is commonly used for
modeling gradual transitions or soft thresholds.
See Also