diff flys-artifacts/ChangeLog @ 3061:49baebb39305

FixA: Add interpolation of parameters that better suits the instantiation real functions. flys-artifacts/trunk@4641 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 12 Jun 2012 08:11:36 +0000
parents 94d78e0dc5e9
children 7660cfe5e8f6
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Jun 11 14:55:03 2012 +0000
+++ b/flys-artifacts/ChangeLog	Tue Jun 12 08:11:36 2012 +0000
@@ -1,3 +1,20 @@
+2012-06-11	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/Parameters.java:
+	  Added method double [] interpolate(keyName, key, columnNames).
+	  This construct is better suited for the extraction of
+	  coefficients for building functions. In pseudo code:
+
+	    fitting.Function function =
+		    FunctionFactory.getInstance().getFunction("log");
+
+	    double km = 42.35;
+
+	    double [] coeffs = parameters.interpolate(
+		    "km", km, function.getParamterNames());
+
+	    math.Function f = function.instantiate(coeffs);
+
 2012-06-11	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java,

http://dive4elements.wald.intevation.org