Spirograph

Frequency ratio arithmetic, nested periodicities, spirograph closure
dynamicalencoding-invariantdim ℂ (phasor plane)4 metrics

What It Measures

Whether the arithmetic structure of the signal's dominant frequency ratios is rational, irrational, or rose-curve-symmetric — the epicyclic decomposition is just a Fourier series viewed as nested rotating phasors, and these metrics probe the Diophantine side of the spectrum rather than the power side.

A spirograph with gear ratio p/q closes after q revolutions of the outer gear; irrational ratios never close and fill the plane densely. Applied to a signal, we take its top-k Fourier modes, treat them as phasors, and ask whether their frequency ratios lie near simple fractions, whether their combined trajectory closes, and whether it carries a visible rotational symmetry.

Metrics

gear_rationality

Mean closeness of pairwise frequency ratios among the top-k modes to simple fractions p/q with q ≤ 12. Saturates at 1.0 for many sources because strong modes tend to sit at small-integer harmonics; low values indicate irrational-ratio structure. Very low variance (CV=0.13) — this metric is tight across the atlas, so large deviations are genuinely meaningful. Correlates with Spectral:spectral_entropy (r=-0.48): high rationality tends to co-occur with low spectral entropy (concentrated modes).

petal_symmetry

Peak height × integer-quality of the strongest rotational symmetry in the trajectory's angular distribution. Mixes "how sharp" with "how clean an integer order" — does NOT carry the integer n itself. High = rose-curve-like pattern with clear n-fold symmetry; near zero = asymmetric or aperiodic. 14.2% floor pile-up reflects how many atlas sources have no detectable rotational symmetry in their top-k mode geometry. Bearing signals (domain mean +1.21) carry strong symmetry — rolling elements generate discrete-harmonic structure — while climate and astro sources are mostly asymmetric.

angular_order

The integer n in n-fold rotational symmetry, derived from the dominant rotational harmonic of the trajectory's angular density (DFT of f(θ) at 1° resolution). Complements petal_symmetry, which discards the integer order. Returns 0 for circles, uniform annuli, and broadband noise; 3 for noble-ratio 3-fold filigree (Fibonacci, Phyllotaxis, Champernowne); 5 for Rule 110; 7 for Middle-Square PRNG — the first scalar in the atlas that flags Middle-Square's known short-cycle defect (Middle-Square = 7, all other PRNGs = 0). 34% of sources are at the zero floor; DNA composition bias is a downstream finding (Spearman ρ = +0.77 with DNA GC-content).

frequency_packing

Max fraction of the top-k modes within ±5% of any single mode's frequency. 0.125 = perfectly spread (8 isolated modes); 1.0 = all 8 in one ±5% cluster. Discriminates two visually-identical 3-fold trajectory mechanisms that angular_order alone cannot tell apart: genuine noble-ratio modes (Fibonacci ≈ 0.4 — spread across the spectrum) vs picket-fence leakage around a single peak (Logistic period-3, Kolakoski ≈ 1.0 — all 8 modes clustered). Bimodal "low-freq trend + clustered peak" sources (Champernowne, DNA Plasmodium) land at ~0.6–0.8. Contributes to PC4.

Atlas Rankings

angular_order
SourceDomainValue
Spectral Form Factorquantum15.0000
OTOC Growthquantum15.0000
Critical Transition (Fold)chaos12.2000
···
Logistic Chaoschaos0.0000
Henon Mapchaos0.0000
Tent Mapchaos0.0000
frequency_packing
SourceDomainValue
Henon Mapchaos1.0000
Logistic r=3.83 (Period-3 Window)chaos1.0000
Kolakoski Sequenceexotic1.0000
···
Critical Transition (Fold)chaos0.1250
Takagi Functionexotic0.1250
Weierstrassexotic0.1250
gear_rationality
SourceDomainValue
Critical Transition (Fold)chaos1.0000
OTOC Growthquantum1.0000
Anderson 1D Localizedquantum1.0000
···
Mian-Chowlanumber_theory0.4352
Heisenberg Walkexotic0.4554
Fibonacci Tight-Bindingquantum0.4557
petal_symmetry
SourceDomainValue
Gaussian Collatz Orbitnumber_theory0.7404
Quantum Walkquantum0.6825
2-Torus Quasiperiodicchaos0.6806
···
Solar Wind IMFastro0.0000
Tidal Gauge (SF)geophysics0.0000
Pink Noisenoise0.0000

When It Lights Up

Spirograph asks an arithmetic question the rest of the framework doesn't: not "is this signal periodic" but "are its dominant frequencies rationally related, and if so, with what n-fold geometry." Periodic signals with small-integer harmonic structure saturate gear_rationality. Quasiperiodic signals (irrational rotation number) trace open phasor curves with angular_order = 0. The (angular_order, frequency_packing) joint distinguishes the two "triangle phenotypes" the phasor_trajectory renderer reveals: φ-noble-ratio Fibonacci-class vs picket-fence Logistic-period-3-class. The geometry is small but sits in a corner of the atlas that purely power-spectral geometries miss: the number-theoretic structure of the frequency support. A sister metric closure_deficit (1 − |closure| of the phasor sum) is class-only — kept in compute_metrics for direct callers but dropped from the atlas because r = +0.90 with Spectral Analysis:peak_frequency makes it a near-duplicate of dominant-peak structure; it was the most-discriminating Spirograph metric (F = 6.76) but the cleanest example of "high F via duplication" in the geometry.

Open in Atlas
← ChladniZariski →