- sherpa.utils.guess_fwhm(y, x, xhi=None, scale=1000)
Estimate the value and valid range for the FWHM of the data.
y (array_like) – The data points.
x (array_like) – The data points.
xhi (None or array_like, optional) – If given then the x array is taken to be the low-edge of each bin.
scale (number, optional) – The scaling factor applied to the value to calculate the minimum (divide) and maximum (multiply) value for the FWHM range.
ans – The keys are ‘val’, ‘min’, and ‘max’, which give the full-width half-maximum and its range.
- Return type:
If there are multiple peaks of the same height then the first peak is used.