GompertzTransitionEvaluate(Double, Double, Double, ReadOnlySpanDouble, ReadOnlySpanDouble) Method |
This function produces a continuous transition with the Gompertz function,
from a left to a right polynomial, centered at xc, with the width of the transition determined by r.
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 r,
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.
- r Double
- The growth rate that controls the width of the transition region. Should 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.
RemarksThe Gompertz function is commonly used for
modeling tumor growth rates, and mortality and survival analysis.
See Also