utility.full_width_at_half_max

utility.full_width_at_half_max(x, y)

Return the full width at half maximum (FWHM) of a peak.

Parameters

Name Type Description Default
x np.ndarray 1-D array of independent variable values (must be monotonically increasing and have enough points for spline fitting). required
y np.ndarray 1-D array of dependent variable values, same length as x. required

Returns

Name Type Description
float The FWHM as a scalar: the distance between the two points where
float y equals half its maximum value.