mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
RideFileCache : Correct weighting factor for Xpower in MeanMaxComputer
fix #1480
This commit is contained in:
@@ -1203,7 +1203,7 @@ MeanMaxComputer::run()
|
||||
// xPower - 25s EWA - uses same algorithm as BikeScore.cpp
|
||||
if (series == RideFile::xPower) {
|
||||
|
||||
const double exp = 2.0f / ((25.0f / ride->recIntSecs()) + 1.0f);
|
||||
const double exp = ride->recIntSecs() / ((25.0f / ride->recIntSecs()) + ride->recIntSecs());
|
||||
const double rem = 1.0f - exp;
|
||||
|
||||
int rollingwindowsize = 25 / ride->recIntSecs();
|
||||
|
||||
Reference in New Issue
Block a user