mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Change SMA smoothing to always include current point
It is the common practice, and it works that way on forward mode, but in backward mode current point was excluded from the average.
This commit is contained in:
@@ -526,8 +526,8 @@ smooth_sma(QVector<double>&data, int pos, int window, int samples)
|
||||
break;
|
||||
|
||||
case GC_SMOOTH_BACKWARD:
|
||||
window_end=0;
|
||||
window_start=window *-1;
|
||||
window_end=1;
|
||||
window_start=window *-1 + 1;
|
||||
break;
|
||||
|
||||
case GC_SMOOTH_CENTERED: // we should handle odd/even size better
|
||||
|
||||
Reference in New Issue
Block a user