jonathanlilly / jLab

A Matlab toolbox for big data analysis, signal processing, mapping, and oceanographic applications.
Other
108 stars 35 forks source link

Include Nyquist bin, halve it for even lengths (Morse) #14

Open OverLordGoldDragon opened 3 years ago

OverLordGoldDragon commented 3 years ago

Addresses #13.

Note that for odd lengths, not halving last bin (non-Nyquist) is proper and preserves analyticity, but loses fast decay. This decay seems irrelevant for CWT, but not if otherwise working directly with time-domain wavelet. This is conveniently worked around if CWT pads up to next-highest power of 2 (e.g. reflective padding), alleviating boundary effects and yielding analyticity w/ fast decay.