Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQRelationCalculation.java @ 6827:2972a219743d
Fix typo in SQRelation calculation
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 14 Aug 2013 15:20:01 +0200 |
parents | 330ea2915168 |
children | 1dff8e71c4d6 |
comparison
equal
deleted
inserted
replaced
6826:74a437805e2a | 6827:2972a219743d |
---|---|
355 double yDiff = ym - fs; | 355 double yDiff = ym - fs; |
356 | 356 |
357 mixXY += xDiff*yDiff; | 357 mixXY += xDiff*yDiff; |
358 | 358 |
359 sumX += xDiff*xDiff; | 359 sumX += xDiff*xDiff; |
360 sumY *= yDiff*yDiff; | 360 sumY += yDiff*yDiff; |
361 } | 361 } |
362 | 362 |
363 double r = mixXY/Math.sqrt(sumX*sumY); | 363 double r = mixXY/Math.sqrt(sumX*sumY); |
364 return r*r; | 364 return r*r; |
365 } | 365 } |