- sherpa.utils.get_peak(y, x, xhi=None)
Estimate the peak position 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.
ans – The X position of the peak.
- Return type
If there are multiple peaks of the same height then the location of the first peak is used.