# HG changeset patch # User Tim Englich # Date 1254131597 0 # Node ID fce237b6fdb866ecc6beaf54ffb0e3d81ff6c52d # Parent 4241af6ae3741a7419d01cf8d657585770fabbd6 Bug fixed. Now all Values will be used to calculate the Statistics gnv-artifacts/trunk@143 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4241af6ae374 -r fce237b6fdb8 gnv-artifacts/Changelog --- a/gnv-artifacts/Changelog Mon Sep 28 08:23:40 2009 +0000 +++ b/gnv-artifacts/Changelog Mon Sep 28 09:53:17 2009 +0000 @@ -1,3 +1,8 @@ +2009-09-28 Tim Englich + + * src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java (calculateStatistics) Edited: + Bug fixed. Now all Values will be used to calculate the Statistics + 2009-09-28 Tim Englich * src/test/ressources/conf.xml Edited : diff -r 4241af6ae374 -r fce237b6fdb8 gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java Mon Sep 28 08:23:40 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java Mon Sep 28 09:53:17 2009 +0000 @@ -61,7 +61,6 @@ statistics = new ArrayList(); int break1, break2; int lSeries = 1; - if (sDebug) log.debug("TimeseriesStatistics() lImageFile != null"); try{ Iterator resultIterator = resultSet.iterator(); @@ -75,26 +74,26 @@ if (break1 != row.getInteger("GROUP1") || break2 != row.getInteger("GROUP2")) { - addStatisticsValues(lStatistics, lRegression, lSeries); lStatistics.clear(); lRegression.clear(); - row = resultIterator.next(); lStatistics.addValue(row.getDouble("YORDINATE")); Double x = new Double( (row.getDate("XORDINATE")).getTime()/1000/3600) ; lRegression.addData(x ,row.getDouble("YORDINATE")); break1 = row.getInteger("GROUP1"); break2 = row.getInteger("GROUP2"); + row = resultIterator.next(); lSeries ++; } else{ - row = resultIterator.next(); + lStatistics.addValue(row.getDouble("YORDINATE")); Double x = new Double( (row.getDate("XORDINATE")).getTime()/1000/3600) ; lRegression.addData(x,row.getDouble("YORDINATE")); + row = resultIterator.next(); } }