From de4df4473cdd994f41230a9337282690319fd353 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 6 Sep 2018 12:29:36 +0200 Subject: [PATCH] reformatting stats page --- rowers/templates/workoutstats.html | 135 +++++++++++++++-------------- 1 file changed, 68 insertions(+), 67 deletions(-) diff --git a/rowers/templates/workoutstats.html b/rowers/templates/workoutstats.html index 3b1fbc5b..4c5f8644 100644 --- a/rowers/templates/workoutstats.html +++ b/rowers/templates/workoutstats.html @@ -8,7 +8,7 @@

Workout Statistics for {{ workout.name }}

- This is an experimental page which just lists a bunch of statistics for + This page lists a bunch of statistics for your workout. The mean is of a metric is the mean with equal weight for each stroke. The time weighted mean takes into account the stroke duration. @@ -43,76 +43,77 @@ If your data source allows, this will show or hide strokes taken during rest intervals.

-
-{% if stats %} -{% for key, value in stats.items %} -

{{ value.verbosename }}

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MetricValue
Mean{{ value.mean|floatformat:-2 }}
Time Weighted Mean {{ value.wmean|floatformat:-2 }}
Minimum{{ value.min|floatformat:-2 }}
25%{{ value.firstq|floatformat:-2 }}
Median{{ value.median|floatformat:-2 }}
75%{{ value.thirdq|floatformat:-2 }}
Maximum{{ value.max|floatformat:-2 }}
Standard Deviation{{ value.std|floatformat:-2 }}
-{% endfor %} -{% endif %} -
-
+ +
+ +

rPower: Equivalent steady state power for the duration of the workout.

+

Heart Rate Drift: Comparing heart rate normalized for average power for the first and second half of the workout

+

TRIMP: TRaining IMPact. A way to combine duration and heart rate into a single number.

+

rScore: Score based on rPower and workout duration to estimate training effect

+

rScore (HR): Score based on heart rate, designed to give values comparable to rScore. Used instead of rScore for workouts without power data.

+
{% if otherstats %} -
-   -
-
- -

rPower: Equivalent steady state power for the duration of the workout.

-

Heart Rate Drift: Comparing heart rate normalized for average power for the first and second half of the workout

-

TRIMP: TRaining IMPact. A way to combine duration and heart rate into a single number.

-

rScore: Score based on rPower and workout duration to estimate training effect

-

rScore (HR): Score based on heart rate, designed to give values comparable to rScore. Used instead of rScore for workouts without power data.

-
-

Other Stats

- - - - - - - - - - {% for key, value in otherstats.items %} - - - - - - {% endfor %} - -
MetricValueUnit
{{ value.verbose_name }}{{ value.value }}{{ value.unit }}
+
+

Workout Metrics

+ + + + + + + + + + {% for key, value in otherstats.items %} + + + + + + {% endfor %} + +
MetricValueUnit
{{ value.verbose_name }}{{ value.value }}{{ value.unit }}
{% endif %} +
-
+
+ {% if stats %} +

Statistics

+ + + + + + + + + + + + + + + + {% for key, value in stats.items %} + + + + + + + + + + + + {% endfor %} + +
MetricMeanTime Weighted MeanMinimum25%Median75%MaximumStandard Deviation
{{ value.verbosename }}{{ value.mean|floatformat:-2 }} {{ value.wmean|floatformat:-2 }}{{ value.min|floatformat:-2 }}{{ value.firstq|floatformat:-2 }}{{ value.median|floatformat:-2 }}{{ value.thirdq|floatformat:-2 }}{{ value.max|floatformat:-2 }}{{ value.std|floatformat:-2 }}
+ {% endif %} +
+ +
{% if cordict %}

Correlation matrix

This matrix indicates a positive (+) or negative (-) correlation between two parameters. The Spearman correlation coefficient has values between +1 and -1. Positive correlation between two metrics means that if one metric increases, the other value is also likely to increase. Negative is the opposite. The further from zero, the higher the likelyhood.