Print

Print


Commit in lcsim/src/org/lcsim/contrib/uiowa on MAIN
ConeClusterSharingAlgorithm.java+1-11.1 -> 1.2
MJC: (contrib) Bugfix

lcsim/src/org/lcsim/contrib/uiowa
ConeClusterSharingAlgorithm.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ConeClusterSharingAlgorithm.java	12 Jul 2008 06:49:52 -0000	1.1
+++ ConeClusterSharingAlgorithm.java	16 Jul 2008 05:40:19 -0000	1.2
@@ -39,7 +39,7 @@
 		double normalizedOffset = offset / (1.0 - m_scaleOK);
 		score = 1.0 - 0.3*normalizedOffset;
 		if (score > 1.0 || score < 0.7) { throw new AssertionError("Calculation error"); }
-	    } else if (dotProduct >= m_scaleOK && dotProduct < m_scaleMin) {
+	    } else if (dotProduct <= m_scaleOK && dotProduct > m_scaleMin) {
 		// In "poor" region, scoring 0.7 to 0.0
 		double offset = (m_scaleOK - dotProduct);
 		double normalizedOffset = offset / (m_scaleOK - m_scaleMin);
CVSspam 0.2.8