Private
Public Access
1
0
Files
rowsandall/rowers/templates/statsdiv.html
Sander Roosendaal 6b830873a5 added stats
2019-04-29 21:48:50 +02:00

77 lines
2.1 KiB
HTML

{% if stats %}
<h2>Statistics</h2>
<table width="100%" class="listtable">
<thead>
<tr>
<th>Metric</th>
<th>Mean</th>
<th>Minimum</th>
<th>25&#37;</th>
<th>Median</th>
<th>75&#37;</th>
<th>Maximum</th>
<th>Standard Deviation</th>
</tr>
</thead>
<tbody>
{% for key, value in stats.items() %}
<tr>
<td>{{ value.verbosename }}</td>
<td>{{ value.mean|floatformat }}</td>
<td>{{ value.min|floatformat }}</td>
<td>{{ value.firstq|floatformat }}</td>
<td>{{ value.median|floatformat }}</td>
<td>{{ value.thirdq|floatformat }}</td>
<td>{{ value.max|floatformat }}</td>
<td>{{ value.std|floatformat }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if cordict %}
<h2> Correlation matrix</h2>
<p>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.
</p>
<table width="90%" class="cortable">
<thead>
<tr>
<th>&nbsp;</th>
{% for key,value in cordict.items() %}
<th class="rotate"><div><span>{{ key }}</span></div></th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for key, thedict in cordict.items() %}
<tr>
<th> {{ key }}</th>
{% for key2,value in thedict.items() %}
<td>
{% if value > 0.5 %}
<div class="poscor">{{ value|floatformat }}</div>
{% elif value > 0.1 %}
<div class="weakposcor">{{ value|floatformat }}</div>
{% elif value < -0.5 %}
<div class="negcor">{{ value|floatformat }}</div>
{% elif value < -0.1 %}
<div class="weaknegcor">{{ value|floatformat }}</div>
{% else %}
&nbsp;
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}