From 362a324b3329bdcc8f20f1d0865fce52ec9e8898 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Sat, 23 Jun 2018 14:08:12 +0200
Subject: Calculate r^2 and show 'uncertain' labels for max level stats

---
 src/ReportTable.vue | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/ReportTable.vue')

diff --git a/src/ReportTable.vue b/src/ReportTable.vue
index fa457e6..d44bdea 100644
--- a/src/ReportTable.vue
+++ b/src/ReportTable.vue
@@ -16,7 +16,7 @@
 
     <b-field>
       <div class="control">
-        <b-switch v-model="filterLowPickrate">Include entries without enough data</b-switch>
+        <b-switch v-model="filterLowPickrate">Include entries without enough data (statistics will be inaccurate)</b-switch>
       </div>
     </b-field>
 
@@ -70,18 +70,23 @@
             {{ (100 * props.row.Winner).toFixed(2) }}% <!-- No Talent -->
           </template>
           <template v-else>
-            {{ (100 * props.row.TalentWinrateBase).toFixed(2) }}%
+            {{ (100 * props.row.TalentWinrateBase).toFixed(0) }}%
           </template>
         </b-table-column>
 
         <b-table-column field="TalentWinrateMax" label="Max Level Win Rate" meta="Estimated." :visible="hasTalents" sortable numeric>
           <template v-if="!isNaN(props.row.TalentWinrateMax)">
-            {{ (100 * props.row.TalentWinrateMax).toFixed(2) }}%
+            {{ (100 * props.row.TalentWinrateMax).toFixed(0) }}%
+            <small v-if="props.row.VarianceTooLarge"><br />uncertain</small>
           </template>
         </b-table-column>
 
+        <b-table-column field="TalentWinrateVariance" label="Variance" :visible="hasTalents" sortable numeric>
+          {{ props.row.TalentWinrateVariance.toFixed(2) }}
+        </b-table-column>
+
         <b-table-column field="Winner" label="Win Rate" :visible="!hasTalents" sortable numeric>
-          {{ (100 * props.row.Winner).toFixed(2) }}%
+          {{ (100 * props.row.Winner).toFixed(0) }}%
         </b-table-column>
 
         <b-table-column field="TotalPicks" label="Pick Rate" sortable numeric>
-- 
cgit v1.3.1

