dampmeter — IDV individual damping caliper
Measure a system's intrinsic relaxation time τ (γ = 1/τ) from a single scalar time series. Four independent estimators, convergence-as-identity-check, shuffle-null control. KB-RAM / millisecond class — built for edge devices.
import dampmeter as dm
est = dm.measure(x, dt=1.0) # x = one scalar series, stationary window
est.tau # damping time constant, in units of dt
est.gamma # 1/tau
est.converged # True when >=3 estimators agree within ±30% of the median
What it measures (and what it does not)
| ✅ Effective damping time τ | how fast perturbations decay inside a stable regime (effective linear relaxation) |
| ✅ Stability of τ | convergence across independent estimators + a shuffle null — "this constant is really there", not "the fit looks good" |
| ❌ Mechanism | γ is effective only; decomposing it (radiative vs wave drag vs friction…) needs budget methods |
| ❌ Potential-well stiffness | stiffness is curvature (ω₀²), a different physical quantity — this package measures dissipation, not stiffness |
| ❌ Sign of degradation | "damage → damping" has no universal sign: defect-size axis (τ↑) and wear/life axis (τ↓) can go opposite ways — always specify the axis before interpreting trends |
Estimators
| Method | What it does |
|---|---|
tau1_acf |
autocorrelation e-fold decay |
tau2_dcor |
distance-correlation e-fold (nonlinear, shift-invariant) |
tau3_ringdown |
impulse-conditioned ring-down decay R(k) |
tau4_recovery |
post-drop recovery time (auxiliary; right-censoring prone — never evidence alone) |
Convergence rule: at least 3 of the primary methods within ±30% of the median ⇒ individual damping established. Two ring-down calibers are provided and deliberately kept separate:
ringdown_conditional— impulse-conditioned decay (the validated IDV estimator);ringdown_envelope— analytic-envelope decay for band-passed oscillatory signals, using the Hilbert analytic envelope with the normalized MAD event thresholdmedian|env − median(env)| × 1.4826. Known traps these are built against:|band-passed|as the "envelope" quantizes τ to the oscillation half-period;median(env) × 1.4826is the wrong MAD (threshold lands near ~5σ, almost nothing crosses it).
Minimum data (2,800-bootstrap characterization, ±30% hit rate)
| Samples | Hit rate | Verdict |
|---|---|---|
| 20 | 13% (τ underestimated ~2×) | ❌ hard floor — do not use |
| ~180 | 57% | ⚠️ coarse tier |
| ~610 | 81.5% | ✅ reliable tier |
| ~1,220 | 97% | ✅ stable |
The impulse ring-down method needs more: ≥40 pulses ≈ 1,500 samples for 65%. Compute: single core seconds (2,800 bootstraps), RAM KB-class, per-test milliseconds — 6–9 orders of magnitude cheaper than reanalysis-budget approaches.
Null control (do not skip)
tau_null = dm.shuffle_null_ringdown(x, blocks=years) # shuffle within blocks
If the ring-down τ does not collapse after temporal structure is destroyed, you are reading a mathematical necessity (trend / mean offset), not physics — invalidate the estimate.
Pitfalls
- Detrend first (fit the trend on the anomaly, not the raw series). A mean offset lifts the ACF plateau so the curve never reaches 1/e (NaN) — the dCor estimate stays shift-invariant and can help locate the problem.
- Stationary window + effective linear relaxation are the working assumptions.
- Short-lived systems (e.g. ~10-day storms) cannot pass the 610-sample floor.
- Do not transplant thresholds across domains (geometric cutoffs, event quantiles): re-derive per domain with sensitivity checks, and calibrate on a ground-truth domain first.
Validation status (honest)
- τ convergence (3 methods: 11.28 / 10.81 / 13.32 → τ ≈ 12.3 days) and shuffle-null collapse (τ → 0.9) have been demonstrated on one physical system (stratospheric polar vortex, 2,867 daily samples). Ring-down caliber applications exist on two more domains (bearing vibration, ECG), single-caliber only.
- Cross-domain τ convergence replication is pending — treat new domains as unvalidated until you run convergence + null there.
Install
pip install dampmeter
Pure numpy + scipy. Python ≥ 3.9.
References
Part of the Ô-HAT dual-operator measurement primitive (IDV caliper + T blind-state gatekeeper). Method details, usage boundaries and the engineering interface table: project/ohat_framework/note-dual-operator-idv-t.md (framework v3.7, §3.12).
Authors
tygtDc, Deep Research (correspondence: drtygtdc@gmail.com) · Ma Ka Po
License
CC BY 4.0 — free to use, adapt and commercialize with attribution.
Metadata
Release files for dampmeter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dampmeter-1.0.0.tar.gz | 14.4 kB | Without provenance | Details for dampmeter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dampmeter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dampmeter-1.0.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / dampmeter-1.0.0.tar.gz
| Download URL | dampmeter-1.0.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3c65b36f43037a0f0638c76510526b258ea18105ce48cae7e7275281c54e5cb
|
|
BLAKE2b-256 checksum How to use checksums |
d075fe952998e15682c23dcf34cea03225d4dafc52502c6947f27980dd42864d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / dampmeter-1.0.0-py3-none-any.whl
| Download URL | dampmeter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdc14c1bc879c4eeba902818b707909d2a5e86778c8de14474ab789bf6dee29b
|
|
BLAKE2b-256 checksum How to use checksums |
1a91f67030207e122f65e1232dfa326da4663fe3ec3c3d6df1dd5ea2e227099a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for dampmeter 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.