raman.get_peak_estimate¶
-
raman.
get_peak_estimate
(x, y, peaks)¶ Returns a list of estimated peak parameters from a spectrum for each peak whose approximate x-coordinate is listed in peaks. The output can be directly used in the Lorentzian or Gaussian fitting functions or in
fit_peaks()
.Parameters: - x (array) – x-axis.
- y (array) – Data, same shape as x.
- peaks (array) – List with peak positions in same units as x.
Returns: A list of estimated parameters for each peak:
- A amplitude,
- x0 center,
- dx FWHM.