Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/fitting/Log.java @ 3177:585c0b49e696
Added inverses of the fitting functions.
flys-artifacts/trunk@4792 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 26 Jun 2012 06:33:37 +0000 |
parents | 6b13d7e7b403 |
children |
comparison
equal
deleted
inserted
replaced
3176:cbaa49896eca | 3177:585c0b49e696 |
---|---|
19 return m/(Q+b); | 19 return m/(Q+b); |
20 } | 20 } |
21 }; | 21 }; |
22 } | 22 } |
23 }; | 23 }; |
24 | |
25 public static final Function INSTANCE = new Log(); | |
24 | 26 |
25 public Log() { | 27 public Log() { |
26 super("log", "W(Q) = m*ln(Q + b)", new String [] { "m", "b" }); | 28 super("log", "W(Q) = m*ln(Q + b)", new String [] { "m", "b" }); |
27 } | 29 } |
28 | 30 |
44 | 46 |
45 @Override | 47 @Override |
46 public Derivative getDerivative() { | 48 public Derivative getDerivative() { |
47 return DERIVATIVE; | 49 return DERIVATIVE; |
48 } | 50 } |
51 | |
52 @Override | |
53 public Function getInverse() { | |
54 return InvLog.INSTANCE; | |
55 } | |
49 } | 56 } |
50 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |