changeset 46:2e2a05bb4b76

No longer show reliability percentage, it's pretty useless.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Aug 2021 17:29:22 +0300
parents 6a9d1b8e3065
children e54ff8753de6
files info.php
diffstat 1 files changed, 3 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/info.php	Mon Aug 23 17:27:54 2021 +0300
+++ b/info.php	Mon Aug 23 17:29:22 2021 +0300
@@ -43,19 +43,6 @@
 ];
 
 
-// Define ranges for alloy tests' "reliability" based
-// on how many tests have been performed. Define the
-// lower and upper bound (inclusive), informative text
-// and CSS style for those items.
-$matReliability =
-[
-  [  1,    2, "1-2 tests", "background: #a00; color: white;" ],
-  [  3,    5, "3-5 tests", "background: #750; color: white;" ],
-  [  6,    9, "6-9 tests", "background: #c90; color: black;", "color: black;" ],
-  [ 10, 9999, "10 or more", "background: #080; color: white;" ],
-];
-
-
 function stGetMatLink($mat, $title = "", $extra = "")
 {
   global $siteIndex;
@@ -64,21 +51,9 @@
 }
 
 
-function stGetReliabilityClass($n)
-{
-  global $matReliability;
-  foreach ($matReliability as $chk)
-  {
-    if ($n >= $chk[0] && $n <= $chk[1])
-      return "hits".$chk[0]."to".$chk[1];
-  }
-  return "nohits";
-}
-
-
 function stPrintAlloyTable($class, $currTable1, $currTable2, $nohits, $onlyMat = FALSE)
 {
-  global $alloyTable, $researched, $researchValue, $researchTotal;
+  global $alloyTable, $researched, $researchTotal;
   echo
     "<table class=\"".$class."\">".
     " <tr>\n".
@@ -91,7 +66,6 @@
   echo " </tr>\n";
 
   $researched = 0;
-  $researchValue = 0;
   $researchTotal = 0;
 
   foreach ($currTable1 as $mat1)
@@ -122,7 +96,6 @@
             $value += $b;
 
           $researched++;
-          $researchValue += $value;
 
           $slist = [];
           $unstable = count($tmp) > 1;
@@ -413,18 +386,12 @@
   //
   // Calculate some statistics
   //
-  $researchValue /= $researched * 10.0;
-  if ($researchValue > 1.0)
-    $researchValue = 1.0;
-
   $researchTotal /= 2;
   $researched /= 2;
 
   printf(
-    "<div><b>%1.2f%%</b> (%d / %d) of combinations researched. ".
-    "Estimating <b>%1.2f%%</b> overall accuracy.</div>\n",
-    ($researched * 100.0) / $researchTotal, $researched, $researchTotal,
-    $researchValue * 100.0);
+    "<div><b>%1.2f%%</b> (%d / %d) of combinations researched.",
+    ($researched * 100.0) / $researchTotal, $researched, $researchTotal);
 }
 
 cmPrintPageFooter();