Cumulative elevation gain/loss with a hysteresis threshold to reject the
metre-scale jitter in barometric/GPS elevation. We only commit a move once it
exceeds thresholdMeters from the last committed reference — the standard way
to keep noise from inflating "gain" (raw positive-diff sums overcount wildly).
NaN samples (missing ele) are skipped.
Cumulative elevation gain/loss with a hysteresis threshold to reject the metre-scale jitter in barometric/GPS elevation. We only commit a move once it exceeds
thresholdMetersfrom the last committed reference — the standard way to keep noise from inflating "gain" (raw positive-diff sums overcount wildly). NaN samples (missing ele) are skipped.