From fc690eeedaab6e352c116a61eaeae3cb3784f2c0 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 8 Mar 2016 21:07:45 -0300 Subject: [PATCH] Added Descriptions for Coggan Metrics --- src/Metrics/Coggan.cpp | 6 ++++++ src/Metrics/aCoggan.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/Metrics/Coggan.cpp b/src/Metrics/Coggan.cpp index 1ff2388e7..1979ddcf6 100644 --- a/src/Metrics/Coggan.cpp +++ b/src/Metrics/Coggan.cpp @@ -47,6 +47,7 @@ class NP : public RideMetric { setMetricUnits("watts"); setImperialUnits("watts"); setPrecision(0); + setDescription(tr("Normalized Power is an estimate of the power that you could have maintained for the same physiological 'cost' if your power output had been perfectly constant.")); } void compute(RideItem *item, Specification spec, const QHash &) { @@ -122,6 +123,7 @@ class VI : public RideMetric { setName("VI"); setType(RideMetric::Average); setPrecision(3); + setDescription(tr("Variability Index is the ratio between NP and Average Power.")); } void compute(RideItem *, Specification, const QHash &deps) { @@ -160,6 +162,7 @@ class IntensityFactor : public RideMetric { setName("IF"); setType(RideMetric::Average); setPrecision(3); + setDescription(tr("Intensity Factor is the ratio between NP and the Functional Threshold Power (FTP) configured in Power Zones.")); } void compute(RideItem *item, Specification, const QHash &deps) { @@ -213,6 +216,7 @@ class TSS : public RideMetric { void initialize() { setName("TSS"); setType(RideMetric::Total); + setDescription(tr("Training Stress Score takes into account both the intensity and the duration of the training session, it can be computed as 100 * hours * IF^2")); } void compute(RideItem *item, Specification, const QHash &deps) { @@ -271,6 +275,7 @@ class TSSPerHour : public RideMetric { setName(tr("TSS per hour")); setType(RideMetric::Average); setPrecision(0); + setDescription(tr("Training Stress Score divided by Duration in hours")); } void compute(RideItem *, Specification, const QHash &deps) { @@ -318,6 +323,7 @@ class EfficiencyFactor : public RideMetric { setMetricUnits(tr("")); setImperialUnits(tr("")); setPrecision(3); + setDescription(tr("The ratio between NP and Average HR for Cycling and xPace (in yd/min) and Average HR for Running")); } void compute(RideItem *item, Specification, const QHash &deps) { diff --git a/src/Metrics/aCoggan.cpp b/src/Metrics/aCoggan.cpp index 4311ef1d7..005d3e2c5 100644 --- a/src/Metrics/aCoggan.cpp +++ b/src/Metrics/aCoggan.cpp @@ -44,6 +44,7 @@ class aNP : public RideMetric { setMetricUnits("watts"); setImperialUnits("watts"); setPrecision(0); + setDescription(tr("Altitude Adjusted Normalized Power is an estimate of the power that you could have maintained for the same physiological 'cost' if your power output had been perfectly constant accounting for altitude.")); } void compute(RideItem *item, Specification spec, const QHash &) { @@ -121,6 +122,7 @@ class aVI : public RideMetric { setName("aVI"); setType(RideMetric::Average); setPrecision(3); + setDescription(tr("Altitude Adjusted Variability Index is the ratio between aNP and Average aPower.")); } void compute(RideItem *, Specification, const QHash &deps) { @@ -160,6 +162,7 @@ class aIntensityFactor : public RideMetric { setName("aIF"); setType(RideMetric::Average); setPrecision(3); + setDescription(tr("Altitude Adjusted Intensity Factor is the ratio between aNP and the Critical Power (CP) configured in Power Zones.")); } void compute(RideItem *item, Specification, const QHash &deps) { @@ -203,6 +206,7 @@ class aTSS : public RideMetric { void initialize() { setName("aTSS"); setType(RideMetric::Total); + setDescription(tr("Altitude Adjusted Training Stress Score takes into account both the intensity and the duration of the training session plus the altitude effect, it can be computed as 100 * hours * aIF^2")); } void compute(RideItem *item, Specification, const QHash &deps) { @@ -252,6 +256,7 @@ class aTSSPerHour : public RideMetric { setName(tr("aTSS per hour")); setType(RideMetric::Average); setPrecision(0); + setDescription(tr("Altitude Adjusted Training Stress Score divided by Duration in hours")); } void compute(RideItem *, Specification, const QHash &deps) { @@ -299,6 +304,7 @@ class aEfficiencyFactor : public RideMetric { setMetricUnits(tr("")); setImperialUnits(tr("")); setPrecision(3); + setDescription(tr("The ratio between aNP and Average HR")); } void compute(RideItem *, Specification, const QHash &deps) {