FA-69050 / Tide and marine navigation tables / Member archive
High and low water extraction: The first sample is compared with the last · case 05
A spurious turning point appears at the start of the prediction window.
Case contract
Input [h, dt, minr]: equally spaced heights every dt minutes. Interior extrema (plateaus collapse to their midpoint time) are candidates; series endpoints never are. A candidate of the same type as the last accepted event replaces it only if more extreme; otherwise a candidate whose height differs from the last accepted event by less than minr is ignored. Return [[type, minutes, height], ...].
Why this case matters
Tide tables and passage plans turn published predictions into go/no-go decisions about depth, clearance and timing.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| high and low water extraction [[0.5, 2.0, 4.8, 4.6, 4.9, 3.0, 1.0, 0.8, 1.5], 30, 0.2] | [["LW", 0.0, 0.5], ["HW", 60.0, 4.8], ["LW", 90.0, 4.6], ["HW", 120.0, 4.9], ["LW", 210.0, 0.8]] | [["HW", 60.0, 4.8], ["LW", 90.0, 4.6], ["HW", 120.0, 4.9], ["LW", 210.0, 0.8]] | 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 ↗