Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
3060:94d78e0dc5e9 | 3061:49baebb39305 |
---|---|
1 2012-06-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
2 | |
3 * src/main/java/de/intevation/flys/artifacts/model/Parameters.java: | |
4 Added method double [] interpolate(keyName, key, columnNames). | |
5 This construct is better suited for the extraction of | |
6 coefficients for building functions. In pseudo code: | |
7 | |
8 fitting.Function function = | |
9 FunctionFactory.getInstance().getFunction("log"); | |
10 | |
11 double km = 42.35; | |
12 | |
13 double [] coeffs = parameters.interpolate( | |
14 "km", km, function.getParamterNames()); | |
15 | |
16 math.Function f = function.instantiate(coeffs); | |
17 | |
1 2012-06-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> | 18 2012-06-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
2 | 19 |
3 * src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java, | 20 * src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java, |
4 src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java: | 21 src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java: |
5 Removed superfluous imports. | 22 Removed superfluous imports. |