comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java @ 1887:d2e217f438bc

Minor doc. flys-artifacts/trunk@3246 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 14 Nov 2011 10:11:57 +0000
parents ddd425858169
children abf5da3b285c
comparison
equal deleted inserted replaced
1886:6f047a407f84 1887:d2e217f438bc
117 if (d < -0.0001) return -1; 117 if (d < -0.0001) return -1;
118 if (d > 0.0001) return +1; 118 if (d > 0.0001) return +1;
119 return 0; 119 return 0;
120 } 120 }
121 121
122 /**
123 * Interpolate Ws, given Qs and a km.
124 *
125 * @param iqs Given ("input") Qs.
126 * @param ows Resulting ("output") Ws.
127 * @param table Table of which to use data for interpolation.
128 */
122 public void interpolateW( 129 public void interpolateW(
123 Row other, 130 Row other,
124 double km, 131 double km,
125 double [] iqs, 132 double [] iqs,
126 double [] ows, 133 double [] ows,
380 /** Sort rows (by km). */ 387 /** Sort rows (by km). */
381 public void sortRows() { 388 public void sortRows() {
382 Collections.sort(rows); 389 Collections.sort(rows);
383 } 390 }
384 391
392 /**
393 * @param km Given kilometer.
394 * @param qs Given Q values.
395 * @param ws output parameter.
396 */
385 public double [] interpolateW(double km, double [] qs, double [] ws) { 397 public double [] interpolateW(double km, double [] qs, double [] ws) {
386 return interpolateW(km, qs, ws, null); 398 return interpolateW(km, qs, ws, null);
387 } 399 }
388 400
389 401

http://dive4elements.wald.intevation.org