FA-71588 / Seismic magnitude estimation / Member archive
Clipping-aware amplitude pick: final sample turning point · case 03
A swing that ends at the window edge is missed.
Case contract
Integer counts. If any |sample| >= 0.95*full_scale (integer-truncated) return ["clipped", None]. Otherwise turning points are the first sample, every interior sample that is a peak (b > a and b >= c) or trough (b < a and b <= c), and the last sample; the amplitude is half the largest absolute difference between consecutive turning points. Return ["ok", amplitude].
Why this case matters
Magnitude amplitudes must not come from clipped records and use half peak-to-trough swings.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| segment 22 | ["ok", 200.0] | ["ok", 430.0] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗