summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2011-04-12 16:13:10 +0200
committerjasplin <qt-info@nokia.com>2011-04-12 16:13:10 +0200
commita42002e623bed3b4ef63ea92c56333237d25f33b (patch)
tree2880e252027fe6551b9447e651b2f3c3ba729fd4
parentdc4bfc8ff1c2b7f7c1bbe11c655bcfbe9d8e9ff9 (diff)
Adjust formula for last change stability score.
The formula for LCSS is adjusted from LCSS = (LCMS + LCGSS + LCLSS + LCDS1 + LCDS2) / 5.0 to LCSS = (LCMS + LCGSS + LCLSS + (LCDS1 * LCDS2)) / 4.0 This ensures that certain outlier cases are not falsely given a significant score.
-rwxr-xr-xscripts/computerankings.py2
-rw-r--r--web/analysis/tsbmbody.js2
-rw-r--r--web/analysis/tsstats.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/computerankings.py b/scripts/computerankings.py
index 6ff641e..0f1bf0f 100755
--- a/scripts/computerankings.py
+++ b/scripts/computerankings.py
@@ -154,7 +154,7 @@ def getAllRankingStats(bmstats_list):
lcds2 = stats["lc_dur2_score"]
lcms = changeMagnitudeScore(lc)
lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0
- lcss = (lcms + lcgss + lclss + lcds1 + lcds2) / 5.0
+ lcss = (lcms + lcgss + lclss + (lcds1 * lcds2)) / 4.0
if lc < 1.0:
lcssr = lcss
lcss1r = lcss1
diff --git a/web/analysis/tsbmbody.js b/web/analysis/tsbmbody.js
index 53d48a8..2c14659 100644
--- a/web/analysis/tsbmbody.js
+++ b/web/analysis/tsbmbody.js
@@ -110,7 +110,7 @@ function tooltipText_lcms() {
function tooltipText_lcss() {
return "Stability score for the last significant change:<br /><br />" +
"&nbsp;&nbsp;&nbsp;&nbsp;" +
- "(LCMS + LCGSS + LCLSS + LCDS1 + LCDS2) / 5<br /><br />" +
+ "(LCMS + LCGSS + LCLSS + (LCDS1 * LCDS2)) / 4<br /><br />" +
"The higher this score, the higher the likelihood that the last " +
"significant change is or will become permanent.";
}
diff --git a/web/analysis/tsstats.js b/web/analysis/tsstats.js
index b659752..bba859f 100644
--- a/web/analysis/tsstats.js
+++ b/web/analysis/tsstats.js
@@ -124,7 +124,7 @@ function populatePbmTable(tableSel, data) {
lcds1 = stats.lc_dur1_score;
lcds2 = stats.lc_dur2_score;
- lcss = (lcms + lcgss + lclss + lcds1 + lcds2) / 5.0;
+ lcss = (lcms + lcgss + lclss + (lcds1 * lcds2)) / 4.0;
rbdy += "<td>" + lcss + "</td>";
lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0;