FAILURE MAP
← Case archive

FA-71578 / Seismic magnitude estimation / Member archive

Clipping-aware amplitude pick: half swing · case 03

Amplitudes are double and magnitudes 0.3 high.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
segment 14["ok", 490]["ok", 245.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 ↗