Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/fitting/Log.java Mon Jun 25 19:13:16 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/fitting/Log.java Tue Jun 26 06:33:37 2012 +0000 @@ -22,6 +22,8 @@ } }; + public static final Function INSTANCE = new Log(); + public Log() { super("log", "W(Q) = m*ln(Q + b)", new String [] { "m", "b" }); } @@ -46,5 +48,10 @@ public Derivative getDerivative() { return DERIVATIVE; } + + @Override + public Function getInverse() { + return InvLog.INSTANCE; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :