RideFileCache : XPower in MeanMaxComputer

Exponential moving average from first point for Xpower in MeanMaxComputer
This commit is contained in:
grauser
2015-08-01 00:05:24 +02:00
parent 6435c23591
commit 545c895fd4

View File

@@ -1218,7 +1218,8 @@ MeanMaxComputer::run()
// loop over the data and convert to a EWMA
for (int i=0; i<data.points.size(); i++) {
if (i < rollingwindowsize) {
// dgr : BikeScore has weighting value from first point
if (false && i < rollingwindowsize) {
// get up to speed
sum += data.points[i].value;
@@ -1262,6 +1263,7 @@ MeanMaxComputer::run()
ride_bests[sec] = val;
}
// increments to limit search scope
if (i<120) i++;
else if (i<600) i+= 2;