shiftFFT-tremor-analysis-hz
This visualization displays a tremor analysis by plotting the frequency spectrum of heart rate data sampled at 62.5 Hz. It shows a line chart of raw magnitude versus frequency in Hertz, with the DC and Nyquist components excluded and the spectrum shifted to center around zero frequency. The code implements a custom FFT class using a radix-4 algorithm to transform 512 data points, then calculates magnitude and phase arrays. It uses D3 for rendering with `scaleLinear`, `line`, and `extent`, alongside responsive axes from `@drbagwell/responsive-viz-axes`.
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'
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