aboutsummaryrefslogtreecommitdiff
path: root/ride/moving_time.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-20 18:48:47 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-20 18:48:47 +0200
commit5242b55d878d56b71d443a440c7017015b9df2dd (patch)
treef98bf4568b65c178ed75c86f4d580700e1654c15 /ride/moving_time.go
parent3c8dbdbbb13ca233bd03466de2f0ea4fc4be38d4 (diff)
chore(bench): exclude rides with low moving time ratio
Diffstat (limited to 'ride/moving_time.go')
-rw-r--r--ride/moving_time.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ride/moving_time.go b/ride/moving_time.go
index 7d7f5fe..84cc28e 100644
--- a/ride/moving_time.go
+++ b/ride/moving_time.go
@@ -16,8 +16,8 @@ const movingTimeMinPowerW = 20
// that can count as moving. Longer gaps are pauses (stops, lost signal).
const movingTimeMaxGap = 120 * time.Second
-// Bench (117 rides, `-backtest`, distance >= 10 km):
-// absMean 0.6%, stderr 0.2, p50 0.2, p75 0.4, p90 1.2, p95 2.2, p99 4.8.
+// Bench (104 rides, `-backtest`, distance >= 10 km, moving/elapsed ratio >= 0.8):
+// absMean 0.4%, stderr 0.1, p50 0.2, p75 0.4, p90 0.8, p95 1.4, p99 2.9.
func MovingTime(r Ride) time.Duration {
return movingTime(r, movingTimeMinSpeedMps, movingTimeMaxGap)
}