Adaptive compression & Bounded mode
at1 optimize is AT-1’s adaptive numeric compressor. It auto-selects the best transform and entropy back-end per column, with a hard guarantee the output is never larger than a strong general compressor. It is built entirely from standard, published signal-processing and entropy coding — and emits the same SHA-256-verified, queryable AT-1 container.
Lossless (default)
# Auto-select the best transform + entropy back-end for a numeric column.
# AT-1 tries delta / double-delta / linear-predictive / spectral / byte-plane
# against xz, zstd, bz2, zlib and brotli, and keeps the smallest — and it is
# guaranteed never larger than a plain general-compressor baseline.
at1 optimize compress readings.npy readings.at1o
at1 optimize decompress readings.at1o readings.npy
at1 optimize verify readings.at1o # checks the SHA-256 integrity trailerMethods it picks from
| Method | Best for |
|---|---|
identity | already-decorrelated / incompressible data (falls back here) |
delta / double-delta | monotone IDs, counters, slow sensor & financial series |
ar_lpc | vibration, EEG/biosignal, LiDAR, audio — linear-predictive |
fft_sparse | periodic / tonal signals — spectral model + lossless residual |
byte-plane | model weights, wide-integer & float columns |
You don’t choose — AT-1 measures all of them against several codecs and keeps the smallest, recording which it used in the container header.
Bounded mode (error-bounded lossy)
For scientific and sensor archives where a known tolerance is acceptable, pass --bound F to guarantee a maximum absolute error of F × signal-range. Quantization happens in the signal domain, so the bound holds worst-case on every sample, not on average. Each container embeds a tamper-evident certificate of the honored bound.
# Bounded mode: guarantee a maximum absolute error (here 1% of signal range).
# Far smaller than lossless, with the bound honored on every sample by construction.
at1 optimize compress signal.npy signal.at1o --bound 0.01
at1 optimize verify signal.at1o
# -> mode=bounded max_abs_error=... certificate=<sha256>See the Bounded mode overview for measured size-vs-error results. Bit-exact lanes (medical, forensic, evidence, model weights) never use Bounded mode.
Guarantees
- Never worse than zip — enforced in CI on every release.
- Tamper-evident — a flipped byte fails
verify. - Bounded mode bound always holds — and is independently checkable from the certificate.