Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java @ 814:9d427dd2a96a
Added Javadoc in statistic package.
gnv-artifacts/trunk@898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Apr 2010 14:34:45 +0000 |
parents | c4156275c1e1 |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
813:79c1db3ca7cc | 814:9d427dd2a96a |
---|---|
33 import org.apache.commons.math.stat.regression.SimpleRegression; | 33 import org.apache.commons.math.stat.regression.SimpleRegression; |
34 | 34 |
35 import org.apache.log4j.Logger; | 35 import org.apache.log4j.Logger; |
36 | 36 |
37 /** | 37 /** |
38 * The class <code>TimeseriesStatistics</code> fulfills the following purposes: | 38 * This class is used to create a statistic in timeseries products. |
39 * <ol> | |
40 * <li></li> | |
41 * </ol> | |
42 * | 39 * |
43 * @author blume | 40 * @author blume |
44 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
45 * @version 1.0 | |
46 * @serial 1.0 | |
47 * @see | |
48 * @since 06.12.2007 18:02:27 | |
49 */ | 41 */ |
50 public class TimeseriesStatistics | 42 public class TimeseriesStatistics |
51 extends AbstractStatistics | 43 extends AbstractStatistics |
52 { | 44 { |
53 | 45 |
60 * Constructor | 52 * Constructor |
61 */ | 53 */ |
62 public TimeseriesStatistics() { | 54 public TimeseriesStatistics() { |
63 } | 55 } |
64 | 56 |
65 /** | 57 |
66 * @see de.intevation.gnv.statistics.Statistics#calculateStatistics(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection) | |
67 */ | |
68 public Collection<StatisticSet> calculateStatistics( | 58 public Collection<StatisticSet> calculateStatistics( |
69 Object result, | 59 Object result, |
70 Collection<KeyValueDescibeData> parameters, | 60 Collection<KeyValueDescibeData> parameters, |
71 Collection<KeyValueDescibeData> measurements, | 61 Collection<KeyValueDescibeData> measurements, |
72 Collection<KeyValueDescibeData> dates | 62 Collection<KeyValueDescibeData> dates |
193 } | 183 } |
194 | 184 |
195 return statisticSets; | 185 return statisticSets; |
196 } | 186 } |
197 | 187 |
188 /** | |
189 * Nothing is done here. | |
190 */ | |
198 protected void clearStatistics(){} | 191 protected void clearStatistics(){} |
199 | 192 |
200 /** | 193 |
201 * | |
202 * @param break1 | |
203 * @param break2 | |
204 * @param break3 | |
205 * @param parameters | |
206 * @param measurements | |
207 * @param dates | |
208 * @return | |
209 */ | |
210 protected String generateStatisticsName(String break1, | 194 protected String generateStatisticsName(String break1, |
211 String break2, | 195 String break2, |
212 String break3, | 196 String break3, |
213 Collection<KeyValueDescibeData> parameters, | 197 Collection<KeyValueDescibeData> parameters, |
214 Collection<KeyValueDescibeData> measurements, | 198 Collection<KeyValueDescibeData> measurements, |
231 } | 215 } |
232 } | 216 } |
233 } | 217 } |
234 return ""; | 218 return ""; |
235 } | 219 } |
220 | |
221 | |
236 protected double calculateXOrdinateValue(Result previousRow, Result row) throws SQLException { | 222 protected double calculateXOrdinateValue(Result previousRow, Result row) throws SQLException { |
237 return new Double((row.getDate("XORDINATE")).getTime() / 1000 / 3600); | 223 return new Double((row.getDate("XORDINATE")).getTime() / 1000 / 3600); |
238 } | 224 } |
239 | |
240 } | 225 } |
226 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |