mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
RideFileCache : XPower in MeanMaxComputer
Exponential moving average from first point for Xpower in MeanMaxComputer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user