changeset 5340:5f38d1c39ebd

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Mar 2013 09:51:14 +0100 (2013-03-20)
parents 1b73b731f7bd
children 547041487266
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java	Wed Mar 20 08:50:51 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java	Wed Mar 20 09:51:14 2013 +0100
@@ -26,10 +26,10 @@
     /** Private logger. */
     private static Logger log = Logger.getLogger(DischargeTables.class);
 
-    /** Scale to convert discharge table values of master table into [cm] */
+    /** Scale to convert discharge table values of master table into [cm]. */
     public static final double MASTER_SCALE = 100d;
 
-    /** Scale to convert discharge table values of historical tables into [cm] */
+    /** Scale to convert discharge table values of historical tables into [cm]. */
     public static final double HISTORICAL_SCALE = 1d;
 
     public static final int MASTER = 0;
@@ -184,6 +184,11 @@
         return x > a && x < b;
     }
 
+    /**
+     * Find or interpolate Qs from q/w array.
+     * @param values [[q0,q1,q2],[w0,w1,w2]]
+     * @param w      W value to look for in values.
+     */
     public static double [] getQsForW(double [][] values, double w) {
 
         boolean debug = log.isDebugEnabled();

http://dive4elements.wald.intevation.org