Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
full_width_half_max¶
- full_width_half_max(x, y, peak_index)[source]¶
Get full width half maximum value of the peak. Offset of y should be removed.
- Parameters:
x (ndarray) – Array of x values.
y (ndarray) – Array of y values.
peak_index (int) – Index of peak.
- Returns:
FWHM of the peak.
- Raises:
AnalysisError – When peak is too broad and line width is not found.
- Return type:
float