[PATCH 1 of 4] Fix typo in SQRelation calculation

Wald Commits scm-commit at wald.intevation.org
Wed Aug 14 16:24:16 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1376486401 -7200
# Node ID 2972a219743df271dcd1e49f649c193852a43436
# Parent  74a437805e2a20b124ef5d8d4bd12a3520fb3cbd
Fix typo in SQRelation calculation

diff -r 74a437805e2a -r 2972a219743d artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQRelationCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQRelationCalculation.java	Wed Aug 14 14:20:59 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQRelationCalculation.java	Wed Aug 14 15:20:01 2013 +0200
@@ -357,7 +357,7 @@
                 mixXY += xDiff*yDiff;
 
                 sumX += xDiff*xDiff;
-                sumY *= yDiff*yDiff;
+                sumY += yDiff*yDiff;
             }
 
             double r = mixXY/Math.sqrt(sumX*sumY);


More information about the Dive4elements-commits mailing list