Private
Public Access
1
0

added stats

This commit is contained in:
Sander Roosendaal
2019-04-29 21:48:50 +02:00
parent 256dd25df2
commit 6b830873a5
4 changed files with 177 additions and 3 deletions

View File

@@ -0,0 +1,76 @@
{% 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 %}