|
|
||
|
The Wavelet Transform provides time–frequency localization: it shows not only which frequencies are present (like the Fourier Transform) but when they occur. Unlike the Fourier Transform, which loses the time dimension in the frequency representation, wavelets use scales to zoom in on transients (spikes) and zoom out for slow trends. What this simulation showsTop panel — Raw signal: Choose a Signal source: synthetic Sine + spikes or ECG-style (QRS), or load real ECG (sample) or EEG (eyes open / eyes closed) data. For synthetic signals, red dashed lines mark spike positions and sliders (Noise, Sensitivity, Spike 1, Spike 2) are shown; for loaded data the full recording is plotted and those sliders are hidden. Middle panel — Fourier (FFT): Magnitude vs frequency. The FFT detects the frequencies present but does not tell you when events occurred; that information is smeared across the spectrum. Wavelet panel: The mother wavelet (Morlet, Mexican Hat, Haar, Gaussian-1, or Shannon) used for the transform. Scalogram panel: Time on the X-axis, scale (inverse of frequency) on the Y-axis. High freq / Small scale at the top; Low freq / Large scale at the bottom. Use Run / Step to scan through the CWT; the yellow overlay on the signal shows the wavelet at the current position. Below the scalogram, Current step shows the CWT formula and coefficient for the current scale and time index. Why wavelets for ECG/EEGFourier: Tells you if there is high-frequency content (e.g. a heartbeat), but not when each beat occurred. Wavelet: By scaling the mother wavelet, short wavelets catch fast transients (high temporal resolution) and long wavelets catch slow rhythms (high frequency resolution). The Mexican Hat (Ricker) wavelet matches the sharp rise/fall of a QRS complex, making it ideal for R-peak detection. Try ECG-style or ECG (sample) with Mexican Hat to see this.
QRS DETECTED
Raw signal (time domain) Fourier transform (magnitude vs frequency) Wavelet (mother wavelet) Wavelet scalogram (time vs scale)
4
Current step
Tab descriptionThis page demonstrates the Wavelet Transform vs the Fourier Transform. Signal: Sine + spikes or ECG-style (QRS) (synthetic; Noise, Sensitivity, Spike 1/2 sliders apply), or ECG (sample) / EEG (eyes open) / EEG (eyes closed) (loaded from data files; full recording is plotted, sliders hidden). Wavelet: Morlet, Mexican Hat, Haar, Gaussian-1, or Shannon. Run / Step scan the scalogram; the math panel below shows the CWT formula for the current step. Usage
Math
Key concepts
|
||