Discrete Fourier spectrum
Analyze numeric samples as frequency, one-sided amplitude and phase components.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
X[k]=Σx[n]exp(−i2πkn/N)
The default sine sequence sampled at 8 Hz has amplitude 1 and phase −90° at 2 Hz.
Use 1–64 samples; positive-frequency amplitudes have no windowing and can exhibit spectral leakage.
Frequently asked questions
Why are some Fourier amplitudes doubled?
Negative-frequency pairs are combined for real samples. DC and an existing Nyquist component are not doubled.
Why can a Fourier spectrum spread across bins?
A discontinuity at the record boundary causes leakage. This tool applies no window function.
Calculation criteria and reference materials
- NumPy: Discrete Fourier Transform
X[k]=Σx[n]exp(−i2πkn/N)
Verification of calculation criteria: · Calculation·verification principles · Report errors