guess_xy_mad¶
- sofia_redux.toolkit.fitting.fitpeaks1d.guess_xy_mad(x, y)[source]¶
Default peak guess function for
initial_search
.This function should take in x (independent) and y (dependent) values and return an (x, y) tuple estimate of the most prominent peak location.
- Parameters:
- xarray_like
Independent Values
- yarray_like
Dependent Values
- Returns:
- x_peak, y_peak2-tuple
The x and y location of the most prominent peak.