mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
The age/sex reference tables are coarse decade / paediatric brackets, so a fractional age read a hard step at a bracket edge (39.9 -> 30s band, 40.0 -> 40s band). Anchor each band at its bracket centre and linearly interpolate a fractional age between the two adjacent centres; below the youngest centre / above the oldest centre hold the nearest cited band flat (clamp, never extrapolate) so the band stays within the span of the two cited brackets and the standard's provenance stays accurate.