@pond-ts/fit API Reference
    Preparing search index...

    Function elevationGainLoss

    • 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.

      Parameters

      • ele: Float64Array
      • thresholdMeters: number = CLIMB_THRESHOLD_METERS

      Returns { gainMeters: number; lossMeters: number }