comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java @ 1721:eb35570df0e8

Cosmetics, docs. flys-artifacts/trunk@3002 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 18 Oct 2011 12:31:36 +0000
parents e5f7f25a511c
children 853cd2120d69
comparison
equal deleted inserted replaced
1720:fa932d618989 1721:eb35570df0e8
25 { 25 {
26 private static Logger log = Logger.getLogger(WstValueTable.class); 26 private static Logger log = Logger.getLogger(WstValueTable.class);
27 27
28 public static final int DEFAULT_Q_STEPS = 500; 28 public static final int DEFAULT_Q_STEPS = 500;
29 29
30 /**
31 * A Column in the table, typically representing one measurement session.
32 */
30 public static final class Column 33 public static final class Column
31 implements Serializable 34 implements Serializable
32 { 35 {
33 protected String name; 36 protected String name;
34 37
56 public void setQRangeTree(QRangeTree qRangeTree) { 59 public void setQRangeTree(QRangeTree qRangeTree) {
57 this.qRangeTree = qRangeTree; 60 this.qRangeTree = qRangeTree;
58 } 61 }
59 } // class Column 62 } // class Column
60 63
64 /**
65 * A (weighted) position used for interpolation.
66 */
61 public static final class QPosition { 67 public static final class QPosition {
62 68
63 protected int index; 69 protected int index;
64 protected double weight; 70 protected double weight;
65 71
77 return this; 83 return this;
78 } 84 }
79 85
80 } // class Position 86 } // class Position
81 87
88 /**
89 * A row, typically a position where measurements whrere taken.
90 */
82 public static final class Row 91 public static final class Row
83 implements Serializable, Comparable<Row> 92 implements Serializable, Comparable<Row>
84 { 93 {
85 double km; 94 double km;
86 double [] ws; 95 double [] ws;
226 log.error("spline interpolation failed", aode); 235 log.error("spline interpolation failed", aode);
227 } 236 }
228 237
229 return new double [][] { outWs, outQs }; 238 return new double [][] { outWs, outQs };
230 } 239 }
240
231 241
232 public double [][] interpolateWQ( 242 public double [][] interpolateWQ(
233 int steps, 243 int steps,
234 WstValueTable table, 244 WstValueTable table,
235 Calculation errors 245 Calculation errors

http://dive4elements.wald.intevation.org