User:Wakebrdkid/Frequency spectrum

Article

Tests

BeginPackage["Wikicode`FrequencySpectrum`"]

Peaks::usage = "Peaks[data,windowWidth,cutoff] extracts significant \
local peaks from the given data. The window width affects the minumum \
spacing between found peaks and the cutoff affects the minumum \
amplitude of found peaks."

Begin["`Private`"]

Wikicode`Load["Digital filter"]

Peaks[data_List, windowWidth_Integer, cutoff_?NumberQ] := 
 DigitalFilter`FindPeaks[data, windowWidth, cutoff]

End[]
EndPackage[]