fwhm#
- named_arrays.pdf.fwhm(x, f, axis=None)#
Compute the full-width at half maximum (FWHM) of the function f evaluated at coordinates x.
Uses linear interpolation to locate the two half-maximum crossings (one on each side of the peak), then returns their separation.
- Parameters:
x (AbstractScalar) – The coordinates at which f is evaluated. Must have the same number of elements as f along axis.
f (AbstractScalar) – The function values for which to compute the FWHM. Should have a single peak; the values at the endpoints of axis should be below half the maximum.
axis (None | str | Sequence[str]) – The logical axis along which to compute the FWHM. If
None(the default), f must have only one logical dimension.
- Return type: