comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java @ 429:bed9735adf84

Finished preprocessing data for interpolation in verticalcrosssection charts.ß gnv-artifacts/trunk@477 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 22 Dec 2009 17:19:10 +0000
parents 88cd37c3b5e4
children 04cfb4e3da4f
comparison
equal deleted inserted replaced
428:88cd37c3b5e4 429:bed9735adf84
58 58
59 /** 59 /**
60 * @see de.intevation.gnv.statistics.Statistics#calculateStatistics(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection) 60 * @see de.intevation.gnv.statistics.Statistics#calculateStatistics(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection)
61 */ 61 */
62 public Collection<StatisticSet> calculateStatistics( 62 public Collection<StatisticSet> calculateStatistics(
63 Collection<Result> resultSet, 63 Collection<Result> resultSet,
64 Collection<KeyValueDescibeData> parameters, 64 Collection<KeyValueDescibeData> parameters,
65 Collection<KeyValueDescibeData> measurements, 65 Collection<KeyValueDescibeData> measurements,
66 Collection<KeyValueDescibeData> dates 66 Collection<KeyValueDescibeData> dates
67 ) 67 )
68 throws StatisticsException { 68 throws StatisticsException {
69 this.clearStatistics(); 69
70 clearStatistics();
70 DescriptiveStatistics lStatistics = null; 71 DescriptiveStatistics lStatistics = null;
71 SimpleRegression lRegression = null; 72 SimpleRegression lRegression = null;
72 Collection<StatisticSet> statisticSets = new ArrayList<StatisticSet>(); 73 Collection<StatisticSet> statisticSets = new ArrayList<StatisticSet>();
73 String break1, break2, break3; 74 String break1, break2, break3;
74 int lSeries = 1; 75 int lSeries = 1;
76
77 if (resultSet == null) {
78 return statisticSets;
79 }
75 80
76 int b1Idx = -1; 81 int b1Idx = -1;
77 int b2Idx = -1; 82 int b2Idx = -1;
78 int b3Idx = -1; 83 int b3Idx = -1;
79 int yIdx = -1; 84 int yIdx = -1;

http://dive4elements.wald.intevation.org