diff options
author | jasplin <qt-info@nokia.com> | 2011-03-03 15:13:20 +0100 |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2011-03-03 15:13:20 +0100 |
commit | 9444f87f9acdce2f0eea5c49f9734dc3ee5a7e90 (patch) | |
tree | 6104ea354c1830eb5e65bded718a71ab8a14cd58 | |
parent | 1190f4130fc033d5e3cd60fbccc40a76b10d9e39 (diff) |
Define LCSS as a sum instead of a product.
-rwxr-xr-x | scripts/finalizeresults.py | 4 | ||||
-rw-r--r-- | web/getstats/tsbmbody.js | 6 | ||||
-rw-r--r-- | 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:<br /><br />" + " " + - "LCMS * LCGSS * LCLSS * LCDS1 * LCDS2<br /><br />" + + "(LCMS + LCGSS + LCLSS + LCDS1 + LCDS2) / 5<br /><br />" + "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:<br /><br />" + " " + - "LCMS * LCGSS * LCLSS * LCDS1<br /><br />" + + "(LCMS + LCGSS + LCLSS + LCDS1) / 4<br /><br />" + "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 += "<td>" + lcss + "</td>"; - lcss1 = lcms * lcgss * lclss * lcds1; + lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0; rbdy += "<td>" + lcss1 + "</td>"; rbdy += "<td>" + lcgss.toFixed(4) + "</td>"; |