Added HRV metric

This commit is contained in:
Leif Warland
2017-02-22 21:49:39 +01:00
parent 6ee411a3b9
commit 16e2451e90
6 changed files with 402 additions and 5 deletions

View File

@@ -540,6 +540,12 @@ RideCache::getAggregate(QString name, Specification spec, bool useMetricUnits, b
if (value > rvalue) rvalue = value;
break;
}
case RideMetric::MeanSquareRoot:
{
rvalue = sqrt((pow(rvalue*rcount, 2) + pow(value*count,2))/(rcount + count));
rcount += count;
break;
}
}
}