mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
The DST case used near-flat scattered values, where the naive sum-of- squares closed form is ill-conditioned versus Postgres REGR (a near-zero r2 amplifies the cancellation). The WEIGHT case with the same epoch-day x magnitude and uneven per-day counts already matches bit-identically, so a clear monotonic trend restores tight parity while still exercising the DST-straddling timestamps and a same-UTC-day reading pair.