From a42002e623bed3b4ef63ea92c56333237d25f33b Mon Sep 17 00:00:00 2001 From: jasplin Date: Tue, 12 Apr 2011 16:13:10 +0200 Subject: 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. --- scripts/computerankings.py | 2 +- web/analysis/tsbmbody.js | 2 +- web/analysis/tsstats.js | 2 +- 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:

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

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

" + "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 += "" + lcss + ""; lcss1 = (lcms + lcgss + lclss + lcds1) / 4.0; -- cgit v1.2.3