Skip to main content

DISTANCE_REGRESSION_RELATIVE

Constant DISTANCE_REGRESSION_RELATIVE 

Source
const DISTANCE_REGRESSION_RELATIVE: f64 = 0.01;
Expand description

How much a route may grow, relative to its own baseline length, before distance_regressed reports a regression – whichever is larger, this or DISTANCE_REGRESSION_FLOOR_NM.

Route length is deterministic for a given chart and code version, so any growth is technically a real change. One percent allows for a legitimate tweak (a smoothing tolerance, a lattice cell size) shifting a route slightly, while remaining far below what an actual regression in this crate produces – a route lengthening from roughly 118 NM to 695 NM, not from 118 to 119.