I used the StepModel with form='erf', ‘erf’ is an error function. The fitting results give me the step_sigma as shown below. Does anyone know how to calculate the FWHM of this "erf" in lmfit? Thanks.
[[Model]]
(Model(step, prefix='step_', form='erf') + Model(linear, prefix='line_'))
[[Fit Statistics]]
# fitting method = leastsq
# function evals = 63
# data points = 2048
# variables = 5
chi-square = 0.15843966
reduced chi-square = 7.7552e-05
Akaike info crit = -19378.4170
Bayesian info crit = -19350.2939
[[Variables]]
line_slope: -6.0315e-05 +/- 6.7795e-07 (1.12%) (init = 0)
line_intercept: 0.98634194 +/- 4.4624e-04 (0.05%) (init = 0.05368444)
step_amplitude: -0.81710209 +/- 8.1135e-04 (0.10%) (init = 0.9396381)
step_center: 1065.02173 +/- 0.06374482 (0.01%) (init = 1024)
step_sigma: 13.7122407 +/- 0.12916728 (0.94%) (init = 292.5714)
[[Correlations]] (unreported correlations are < 0.100)
C(line_slope, step_amplitude) = -0.874
C(line_slope, line_intercept) = -0.792
C(line_intercept, step_amplitude) = 0.487
C(step_amplitude, step_sigma) = -0.206
C(line_slope, step_sigma) = 0.178