Bunker LabsResearch facility

  • 11 divisions
  • 55 experiments
  • 8 working
  • 0 validated
  • 0 archived

BL-05-02 Working experiment · Division 05, Signal and Protocol Intelligence

Sampling Lab

  • Stage 3 Experimental implementation
  • Version 0.1
  • Validated Not yet

Sample a signal and try to get it back. This page rebuilds it three ways and shows how far each is off. Drop the sample rate below twice the signal’s frequency and watch a different, lower frequency appear in its place: aliasing, predicted and then measured.

Signal, samples and reconstructions

  • Original signal
  • Samples
  • Zero-order hold (dotted)
  • Straight lines (dashed)
  • Sinc (thick)

Spectrum of the samples

Bars: a DFT of one second of samples (each bar is 1 Hz). Dashed lines: where the page predicts the peaks, including any alias.

Controls

Frequencies (whole Hz)
Reconstruct with

The pictures and readings update as soon as you change a setting.

Readings

Check Not run

Tests the sinc reconstruction and the alias frequencies against exact answers.

Above Nyquist: 3, 7 and 11 Hz together, sampled 32 times a second (fs/2 = 16 Hz), are rebuilt by the page’s sinc reconstruction at 2,000 points and must match the true signal to within 10⁻⁹ everywhere: in theory exactly, so anything bigger would be a bug. Below Nyquist: six sines sampled too slowly must each show a DFT peak at exactly |f − k·fs|, with k the whole number nearest to f/fs, and the sinc reconstruction must be that lower-frequency sine, again to within 10⁻⁹.

How it stays safe

  • Everything is worked out on this page only when you change a setting: there is no animation loop.
  • The work is capped at 400 samples per second and a fixed number of points, so each update takes a few milliseconds.
  • Nothing is uploaded or stored.