FA-71024 / Weather index computation / Member archive
Monthly heating and cooling degree days: daily mean arithmetic · case 04
Half-degree means lose the half before the rounding rule sees them.
Case contract
daily entries are [tmax_F, tmin_F] with None for missing. A day with a missing value reuses the previous valid daily mean; missing days before any valid day are skipped. Round the daily mean half up to a whole degree, then HDD += 65 - m if m < 65, CDD += m - 65 if m > 65. Return [HDD, CDD].
Why this case matters
Energy billing normalisation and utility demand models use monthly HDD/CDD.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| month 9 | [27, 43] | [23, 47] | 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 ↗