get_fwhm¶
-
sherpa.utils.
get_fwhm
(y, x, xhi=None)[source]¶ Estimate the width 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.
Returns: ans – The full-width half-maximum of the peak.
Return type: scalar
See also
Notes
If there are multiple peaks of the same height then the first peak is used.