changeset 359:59ad8f37a590

Issue96 Resloved big that one entry is missiing in the Statitic. The last row of the ResultSet was never used. gnv-artifacts/trunk@433 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 15 Dec 2009 15:50:39 +0000
parents 2f7a28f211c7
children ee760729f6b8
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Tue Dec 15 15:30:25 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Tue Dec 15 15:50:39 2009 +0000
@@ -1,3 +1,9 @@
+2009-12-15  Tim Englich  <tim.englich@intevation.de>
+
+    * src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java (calculateStatistics): 
+	  Issue96 Resloved big that one entry is missiing in the Statitic.
+	  The last row of the ResultSet was never used.
+
 2009-12-15  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue106
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java	Tue Dec 15 15:30:25 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java	Tue Dec 15 15:50:39 2009 +0000
@@ -120,6 +120,11 @@
                     }
 
                 }
+                
+                lStatistics.addValue(row.getDouble("YORDINATE"));
+                Double x = this.calculateXOrdinateValue(previousRow, row);
+                lRegression.addData(x, row.getDouble("YORDINATE"));
+                
                 String statisticsName = this.generateStatisticsName(break1, break2, 
                                                                     break3, parameters, 
                                                                     measurements, dates);

http://dive4elements.wald.intevation.org