comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Parameters.java @ 3552:1df6984628c3

S/Q: Extented the result data model of the S/Q calculation to store the curve coefficients for each iteration step of the outlier elimination. flys-artifacts/trunk@5146 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 27 Jul 2012 12:36:09 +0000
parents 56f62b5209f5
children bcf25d8c183e
comparison
equal deleted inserted replaced
3551:e7f1556192b3 3552:1df6984628c3
93 else { 93 else {
94 columns[indices[i]].setQuick(row, v); 94 columns[indices[i]].setQuick(row, v);
95 } 95 }
96 } 96 }
97 return invalid; 97 return invalid;
98 }
99
100 public boolean set(int row, String [] names, double [] values) {
101 boolean success = true;
102 for (int i = 0; i < names.length; ++i) {
103 int idx = columnIndex(names[i]);
104 if (idx >= 0) {
105 columns[idx].setQuick(row, values[i]);
106 }
107 else {
108 success = false;
109 }
110 }
111 return success;
98 } 112 }
99 113
100 public int size() { 114 public int size() {
101 return columns[0].size(); 115 return columns[0].size();
102 } 116 }

http://dive4elements.wald.intevation.org