FAILURE MAP
← Case archive

FA-71582 / Seismic magnitude estimation / Member archive

Clipping-aware amplitude pick: adjacent swing versus range · case 02

Non-adjacent extremes several cycles apart are combined into one swing.

Member previewVariant 2 · 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 20["ok", 245.0]["ok", 225.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 ↗