/[escript]/trunk/downunder/py_src/inversioncostfunctions.py
ViewVC logotype

Diff of /trunk/downunder/py_src/inversioncostfunctions.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4074 by gross, Thu Nov 15 03:30:59 2012 UTC revision 4076 by gross, Thu Nov 15 03:45:24 2012 UTC
# Line 117  class SimpleInversionCostFunction(Metere Line 117  class SimpleInversionCostFunction(Metere
117                    
118          return self.mu_model * ArithmeticTuple(Y, Data()) + g_reg          return self.mu_model * ArithmeticTuple(Y, Data()) + g_reg
119    
           
     def _getDirectionalDerivative(self, m, d, *args):  
         """  
         returns the directional derivative at *m* in direction *d*.  
   
         :rtype: `float`  
         """  
         dpdm = self.mapping.getDerivative(m)  
         return  self.mu_model* self.forwardmodel.getDirectionalDerivative(args[0], dpdm*d,*args[1]) + \  
                    getDirectionalDerivative(self, m, d, *args[2])  
120    
121      def _getInverseHessianApproximation(self, m, r, *args):      def _getInverseHessianApproximation(self, m, r, *args):
122          """          """

Legend:
Removed from v.4074  
changed lines
  Added in v.4076

  ViewVC Help
Powered by ViewVC 1.1.26