How to calculate the full width half maximum (FWHM) of a function or vector?

In a number of different domains, one is interested in the width of a peak. Two common functions one might want to know the width of are probability distributions (statstics) and intensity distributions (optics and more). A simple-to-define and widespread measure of peak width is the full width half maximum (FWHM). It is interesting to find it for both continuous functions and sampled ones (i.e. vectors).

Are there packages that implement functionality to find the FWHM of functions and vectors?

1 Like

Peaks.jl is able to calculate the width of peaks in 1D sampled signals (vectors). It allows you to calculate the width at any point between top and bottom, but defaults to halfway. This means that, by default, the FWHM is found.

2 Likes