This python code uses the Discrete Fourier Transfrom theory (DFT) to depict the amplitude, frequency and power spectrum of the sunspots using yearly averages from 1700 to 2021.
1. Sampled wave, amplitude vs time
2. Discrete Fourier Tranform, amplitude vs frequency
3. Inverse Discrete Fourier Tranform, amplitude(Sine & Cosine components) vs time
4. Power Spectrum, |amplitude| vs frequency
- Download Visual Studio Code for macOS or Windows
- Install Python Interpreter path 'venv 3.8.X'
- Run
npm install git+{copied_url}
to download all dependencies