guess_fwhm¶
-
sherpa.utils.
guess_fwhm
(y, x, xhi=None, scale=1000)[source]¶ Estimate the value and valid range for the FWHM of the data.
Parameters: - x (y,) – 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.
Returns: ans – The keys are ‘val’, ‘min’, and ‘max’, which give the full-width half-maximum and its range.
Return type: dict
See also
Notes
If there are multiple peaks of the same height then the first peak is used.