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?