Piecewise-Linear

Piecewise-linear regimes, slope diversity, envelope structure
symmetrydim piecewise-linear3 metrics

What It Measures

The piecewise-linear skeleton of the signal — how many distinct linear regimes it passes through, how diverse their slopes are, and how much area it sweeps above its running minimum envelope.

Originally motivated by tropical (min-plus) algebra — where multiplication-becomes-addition turns smooth curves into piecewise-linear ones — but the implementation uses standard numerical differencing throughout. slope_changes is a second-derivative threshold count; envelope_area is the sum of x − running_min (the running min is the one tropical-zero operation in the geometry); unique_slopes counts distinct rounded windowed slopes. The class is still named TropicalGeometry for backwards-compatibility, but the geometry surfaces as "Piecewise-Linear" to match what the code actually does.

Metrics

slope_changes

How many times does the signal change its linear regime? Thue-Morse, Fibonacci Word, Kolakoski Sequence, Logistic Edge-of-Chaos, and Logistic Period-2 all hit 16,382 (maximum for the sample size — essentially every point is a slope change). Smooth continuous-time systems — Van der Pol, Duffing, Hénon-Heiles, Berry Random Wave, Damped Pendulum — score 0 (no second-derivative threshold crossings). Separates "jagged" dynamics (symbolic, discrete chaotic, quasicrystalline) from "smooth" dynamics (oscillators, ODE attractors).

unique_slopes

How many distinct slope values appear in windowed segments? Logistic Chaos, Hénon Map, macOS Mach-O bytes, Gzip-1, and Logistic r=3.68 reach 21 (maximum diversity — every possible local gradient bucket is visited). Logistic Period-5, Partition Function, Primes, Rudin-Shapiro, and Temperature Drift score 1.0 (single dominant slope). Measures the "vocabulary" of the signal's piecewise-linear representation.

envelope_area

Sum of (signal − running_min). Forest Fire (15,969) dominates: its bursty avalanche dynamics create tall, wide excursions above the cumulative minimum. Stern-Brocot Walk (11,557), Symbolic Hénon (10,847), Earthquake Intervals (10,572), and Takagi Function (10,401) follow. Rainfall (34) and constants (0) sit at the floor — they hug their own minimum. Captures global excursion magnitude that the local slope metrics miss.

Atlas Rankings

envelope_area
SourceDomainValue
Forest Fireexotic15968.9621
Stern-Brocot Walknumber_theory11557.4676
Symbolic Henonexotic10846.8000
···
Constant 0x00noise0.0000
Rainfall (ORD Hourly)climate34.0349
Neural Net (Pruned 90%)binary363.9101
slope_changes
SourceDomainValue
Thue-Morseexotic16382.0000
Kolakoski Sequenceexotic16382.0000
Stern-Brocot Walknumber_theory16382.0000
···
fBm (Persistent)noise0.0000
Sine Wavewaveform0.0000
Takagi Functionexotic0.0000
unique_slopes
SourceDomainValue
Logistic Chaoschaos21.0000
Gzip (level 1)binary21.0000
macOS Mach-O (dyld)binary21.0000
···
fBm (Persistent)noise1.0000
Temperature Driftclimate1.0000
Takagi Functionexotic1.0000

When It Lights Up

This geometry provides a complexity fingerprint that's independent of the signal's amplitude distribution. Two signals with identical histograms can have completely different piecewise-linear profiles if one is smooth and the other is jagged. In the atlas, slope_changes is tightly correlated with ordinal transition_entropy (both measure local variability), but envelope_area captures a global excursion property no ordinal metric touches. The geometry sits in the symmetry view where it separates bursty processes (Forest Fire, Stern-Brocot, Symbolic Hénon) from smooth oscillators along the envelope axis.

Open in Atlas
← H4 600-CellHeisenberg (Nil) (centered) →