Keywords & Conventions
Keywordsâ
- Aliasing: High-frequency components above the Nyquist frequency fold into lower frequencies when sampled.
- Angular frequency (): radians per second.
- Circular Convolution: Convolution implied by the DFT due to assumed periodicity.
- CFT: Continuous Fourier Transform
- Complex Exponential / Phasor: , compact representation of sinusoids.
- DC Component: term; represents the average value of the signal.
- DFT: Discrete Fourier Transform
- FFT: Fast Fourier Transform (efficient algorithm for computing the DFT)
- Frequency-domain signal: (continuous) or (discrete)
- Fundamental Frequency (): The lowest frequency component of a periodic signal.
Every other frequency component (harmonics) is an integer multiple of :
Note: Fundamental Frequency
corresponds to the DC component (), which is not considered a harmonic.
- Harmonics / Overtones: Sinusoids at integer multiples of the fundamental frequency.
- Magnitude Spectrum: , amplitude of each frequency component.
- Nyquist Frequency: , the highest frequency that can be represented without aliasing.
- Phase Spectrum: , the angle of each frequency component.
- rFFT: Real-input FFT â optimized DFT for real-valued signals
- Sampling Rate / Frequency (): Number of samples per second in discrete signals.
- Spectral Leakage: Smearing of energy across multiple bins due to non-periodicity of the signal segment.
- Time-domain signal: (continuous) or (discrete)
- Windowing: Multiplying a finite segment by a window (Hann, Hamming, Blackman) to reduce spectral leakage.
- fftshift / ifftshift: Functions to center zero-frequency bin for visualization.
- FT: Fourier Transform â transforms a time-domain signal into the frequency domain.
Conventions Used in This Repository (engineering / FFT)â
The conventions mentioned below are not interchangeable - once one is chosen, it absolutely must be used otherwise the Fourier Transform won't provide good outputs.
Img2Num follows the engineering convention for all FFT and DFT calculations. If you intend to contribute to this area of the project's code, please make sure to familiarise yourself with it before making any changes.
- Engineering
- Science
Engineering Convention (used by Img2Num)â
- Forward transform uses negative exponent, inverse includes normalization.
- Common in signal processing, numerical libraries (NumPy, MATLAB).
Continuous Fourier Transform (CFT)â
- Forward:
- Inverse:
Discrete Fourier Transform (N-point DFT)â
- Forward:
- Inverse:
This is the most commonly used convention, so you might see it more frequently.
Img2Num, NumPy, and MATLAB use the engineering convention.
Science / Physics Conventionâ
- Forward transform uses positive exponent, inverse may include factor.
- Often seen in physics, math textbooks, and continuous analysis.
Continuous Fourier Transform (CFT)â
- Forward:
- Inverse:
Discrete Fourier Transform (N-point DFT)â
- Forward:
- Inverse:
Science convention flips the sign of the exponent in forward/inverse transforms compared to the engineering convention. Some libraries (scientific computing) may follow this.
Both are simply conventions. It does not matter which one you follow (unless the convention is already established wherever you are working) because they both achieve the same outcomes.