Skip to content

Instantly share code, notes, and snippets.

View Wehzie's full-sized avatar

Rafael Tappe Maestro Wehzie

View GitHub Profile
@Wehzie
Wehzie / demo.py
Created December 18, 2022 19:13
The Nyquist rate fallacy
"""
tldr:
Sampling at the Nyquist rate guarantees the potential for analog signal reconstruction.
It does not guarantee exact representation as is.
Reconstruction requires interpolation (of type sinc, sinus cardinalis, Whittaker–Shannon).
"""
import matplotlib.pyplot as plt
from scipy import interpolate
import numpy as np