changeset 6827:2972a219743d

Fix typo in SQRelation calculation
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 14 Aug 2013 15:20:01 +0200
parents 74a437805e2a
children 708416bb560c
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQRelationCalculation.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org