temporary patch to estimate dp from bs

I want to add Daniels Points to the ManualRideFile format, but until then,
simply estimate them from the BikeScore based on a weighting I took from some
of my long rides.  It's mostly on long steady rides that I estimate BikeScore
as part of a ManualRideFile, so hopefully this isn't too terrible as a
temporary patch.  A better fix is in the works.
This commit is contained in:
Sean Rhea
2009-11-28 17:00:03 -05:00
parent 74cbddff5b
commit 7a3d154afa

View File

@@ -48,6 +48,14 @@ class DanielsPoints : public RideMetric {
if (!zones)
return;
if (ride->deviceType() == QString("Manual CSV")) {
// Manual entry: use BS from dataPoints with a scaling factor
// that works about right for long, steady rides.
double scaling_factor = 11.0 / 58.0;
score = ride->dataPoints().first()->bs * scaling_factor;
return;
}
static const double EPSILON = 0.1;
static const double NEGLIGIBLE = 0.1;