FA-71232 / Weather index computation / Member archive
Antecedent precipitation index: sensor glitch clamp · case 02
A negative tipping-bucket glitch lowers soil moisture.
Case contract
obs are [day, precip_mm] in any order; process in ascending day order (stable for equal days). Between observations API decays by k^(day gap); several reports on the same day accumulate without decay; negative precipitation is a sensor glitch treated as 0. Return API after each observation, rounded to 0.01.
Why this case matters
Flash-flood guidance and soil wetness models use API as a moisture state.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| basin 8 | [2.0, 7.0, 4.95, 8.58, 37.29, 33.7, 30.64] | [2.0, 7.0, 5.95, 9.3, 37.9, 34.22, 31.09] | 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 ↗