This module provides a peak search function and tools related to peak analysis.
Find peaks in a curve.
Parameters: |
|
---|---|
Returns: | 1D sequence with indices of peaks in the data if relevance_info is False. Else, sequence of (peak_index, peak_relevance) tuples (one tuple per peak). |
Raise: | IndexError if the number of peaks is too large to fit in the output array. |
Return the full-width at half maximum for the largest peak in the data array.
The algorithm removes the background, then finds a global maximum and its corresponding FWHM.
This value can be used as an initial fit parameter, used as input for an iterative fit function.
Parameters: | y – Data to be used for guessing the fwhm. |
---|---|
Returns: | Estimation of full-width at half maximum, based on fwhm of the global maximum. |