Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/fitting/Function.java @ 3009:4dda67a893da
FixA: Added the derivatives of all fitting functions.
flys-artifacts/trunk@4565 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 31 May 2012 16:32:03 +0000 |
parents | c1f2e792704a |
children | 585c0b49e696 |
comparison
equal
deleted
inserted
replaced
3008:9e0500d64524 | 3009:4dda67a893da |
---|---|
11 { | 11 { |
12 protected String name; | 12 protected String name; |
13 protected String description; | 13 protected String description; |
14 protected String [] parameterNames; | 14 protected String [] parameterNames; |
15 protected double [] initialGuess; | 15 protected double [] initialGuess; |
16 | |
17 public static abstract class Derivative { | |
18 | |
19 protected String description; | |
20 | |
21 public Derivative() { | |
22 } | |
23 | |
24 public Derivative(String description) { | |
25 this.description = description; | |
26 } | |
27 | |
28 public String getDescription() { | |
29 return description; | |
30 } | |
31 | |
32 public abstract de.intevation.flys.artifacts.math.Function | |
33 instantiate(double [] parameters); | |
34 | |
35 } // interface Derivative | |
16 | 36 |
17 public Function() { | 37 public Function() { |
18 } | 38 } |
19 | 39 |
20 public Function( | 40 public Function( |
70 return Double.NaN; | 90 return Double.NaN; |
71 } | 91 } |
72 } | 92 } |
73 }; | 93 }; |
74 } | 94 } |
95 | |
96 public abstract Derivative getDerivative(); | |
75 } | 97 } |
76 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 98 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |