From 9444f87f9acdce2f0eea5c49f9734dc3ee5a7e90 Mon Sep 17 00:00:00 2001 From: jasplin Date: Thu, 3 Mar 2011 15:13:20 +0100 Subject: Define LCSS as a sum instead of a product. --- scripts/finalizeresults.py | 4 ++-- web/getstats/tsbmbody.js | 6 +++--- web/getstats/tsstats.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/finalizeresults.py b/scripts/finalizeresults.py index 4e4b0d4..dafa858 100755 --- a/scripts/finalizeresults.py +++ b/scripts/finalizeresults.py @@ -159,8 +159,8 @@ def getAllRankingStats(bmstats_list): lcds1 = stats["lc_dur1_score"] lcds2 = stats["lc_dur2_score"] lcms = changeMagnitudeScore(lc) - lcss1 = lcms * lcgss * lclss * lcds1 - lcss = lcss1 * lcds2 + lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0 + lcss = (lcms + lcgss + lclss + lcds1 + lcds2) / 5.0 if lc < 1.0: lcssr = lcss lcss1r = lcss1 diff --git a/web/getstats/tsbmbody.js b/web/getstats/tsbmbody.js index 0b299e4..f79180d 100644 --- a/web/getstats/tsbmbody.js +++ b/web/getstats/tsbmbody.js @@ -110,7 +110,7 @@ function tooltipText_lcms() { function tooltipText_lcss() { return "Stability score for the last significant change:

" + "    " + - "LCMS * LCGSS * LCLSS * LCDS1 * LCDS2

" + + "(LCMS + LCGSS + LCLSS + LCDS1 + LCDS2) / 5

" + "The higher this score, the higher the likelihood that the last " + "significant change is or will become permanent."; } @@ -119,10 +119,10 @@ function tooltipText_lcss1() { return "Stability score for the last significant change that does not " + "consider the history after the latter:

" + "    " + - "LCMS * LCGSS * LCLSS * LCDS1

" + + "(LCMS + LCGSS + LCLSS + LCDS1) / 4

" + "The higher this score, the higher the likelihood that the last " + "signicifant change is or will become permanent, but since LCDS2 is " + - "omitted from the product, a high LCSS1 is more likely to be caused " + + "omitted from the sum, a high LCSS1 is more likely to be caused " + "by an outlier than a high LCSS!"; } diff --git a/web/getstats/tsstats.js b/web/getstats/tsstats.js index 93e58ab..b659752 100644 --- a/web/getstats/tsstats.js +++ b/web/getstats/tsstats.js @@ -124,10 +124,10 @@ function populatePbmTable(tableSel, data) { lcds1 = stats.lc_dur1_score; lcds2 = stats.lc_dur2_score; - lcss = lcms * lcgss * lclss * lcds1 * lcds2; + lcss = (lcms + lcgss + lclss + lcds1 + lcds2) / 5.0; rbdy += "" + lcss + ""; - lcss1 = lcms * lcgss * lclss * lcds1; + lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0; rbdy += "" + lcss1 + ""; rbdy += "" + lcgss.toFixed(4) + ""; -- cgit v1.2.3