comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java @ 416:04a242c67fe6

Added support of gap detection in horizontalcrossprofile charts. gnv-artifacts/trunk@464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 21 Dec 2009 13:49:49 +0000
parents 59ad8f37a590
children 88cd37c3b5e4
comparison
equal deleted inserted replaced
375:b3ad3cb94855 416:04a242c67fe6
110 previousRow = row; 110 previousRow = row;
111 row = resultIterator.next(); 111 row = resultIterator.next();
112 lSeries++; 112 lSeries++;
113 } else { 113 } else {
114 114
115 lStatistics.addValue(row.getDouble("YORDINATE")); 115 Double value = row.getDouble("YORDINATE");
116 Double x = this.calculateXOrdinateValue(previousRow, row); 116 if (value != null) {
117 lRegression.addData(x, row.getDouble("YORDINATE")); 117 lStatistics.addValue(value.doubleValue());
118 Double x = calculateXOrdinateValue(previousRow,row);
119 lRegression.addData(x, value.doubleValue());
120 }
118 previousRow = row; 121 previousRow = row;
119 row = resultIterator.next(); 122 row = resultIterator.next();
120 } 123 }
121 124
122 } 125 }

http://dive4elements.wald.intevation.org