get_valley
- sherpa.utils.guess.get_valley(y: ndarray, x: ndarray, xhi: ndarray | None = None) float[source] [edit on github]
Estimate the position of the minimum of the data.
- Parameters:
- y, xarray_like
The data points.
- xhi
Noneor array_like,optional If given then the x array is taken to be the low-edge of each bin.
- Returns:
- ansscalar
The X position of the minimum.
Notes
If there are multiple minima with the same value then the location of the first minimum is used.