comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java @ 1098:1ea7eb72aaa6

Minor cosmetics. flys-artifacts/trunk@2601 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 29 Aug 2011 08:58:03 +0000
parents c09c9e05ecfa
children e5f7f25a511c
comparison
equal deleted inserted replaced
1097:94df49614d92 1098:1ea7eb72aaa6
365 365
366 public double [] interpolateW(double km, double [] qs, double [] ws) { 366 public double [] interpolateW(double km, double [] qs, double [] ws) {
367 return interpolateW(km, qs, ws, null); 367 return interpolateW(km, qs, ws, null);
368 } 368 }
369 369
370
371 /**
372 * @param ws (output parameter), gets returned.
373 * @return output parameter ws.
374 */
370 public double [] interpolateW( 375 public double [] interpolateW(
371 double km, 376 double km,
372 double [] qs, 377 double [] qs,
373 double [] ws, 378 double [] ws,
374 Calculation errors 379 Calculation errors
491 out[0] = r1.getW(r2, km, nPosition); 496 out[0] = r1.getW(r2, km, nPosition);
492 497
493 return !Double.isNaN(out[0]); 498 return !Double.isNaN(out[0]);
494 } 499 }
495 500
501
502 /**
503 * Look up interpolation of a Q at given positions.
504 *
505 * @param q the non-interpolated Q value.
506 * @param referenceKm the reference km (e.g. gauge position).
507 * @param kms positions for which to interpolate.
508 * @param ws (output) resulting interpolated ws.
509 * @param qs (output) resulting interpolated qs.
510 * @param errors calculation object to store errors.
511 */
496 public QPosition interpolate( 512 public QPosition interpolate(
497 double q, 513 double q,
498 double referenceKm, 514 double referenceKm,
499 double [] kms, 515 double [] kms,
500 double [] ws, 516 double [] ws,

http://dive4elements.wald.intevation.org