get_valley¶
-
sherpa.utils.
get_valley
(y, x, xhi=None)[source] [edit on github]¶ Estimate the position of the minimum of the data.
- Parameters
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.
- Returns
ans – The X position of the minimum.
- Return type
scalar
Notes
If there are multiple minima with the same value then the location of the first minimim is used.