single sided of tremor analysis
This visualization displays the single-sided frequency spectrum of a tremor analysis, plotting raw magnitude against frequency in Hertz. The code loads heart rate data from an external package, applies a radix-4 Fast Fourier Transform via a custom FFT class, and computes magnitude values from the resulting complex array. Using D3.js with `scaleLinear` and a `line` generator, the chart renders on an SVG canvas with labeled axes and a gray interior rectangle. The y-axis shows raw magnitude, while the x-axis spans from zero to the Nyquist frequency.
AI-generated descriptionOverview Time to dabble with the infamous FFT in javascript. Starting with a simple script to generate sine waves for testing.
'Double-sided Magnitude spectrum'
Only a couple of acknowledgements
Discrete Fourier Transform - Simple Step by Step https://www.youtube.com/watch?v=mkGsMWi_j4Q
Understanding the Discrete Fourier Transform and the FFT https://www.youtube.com/watch?v=QmgJmh2I3Fw&t=3s