/[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 4080 by jfenwick, Mon Nov 19 01:45:38 2012 UTC revision 4095 by caltinay, Wed Dec 5 05:32:22 2012 UTC
# Line 35  class SimpleInversionCostFunction(Metere Line 35  class SimpleInversionCostFunction(Metere
35      It is the sum of two weighted terms, a single forward model and a single      It is the sum of two weighted terms, a single forward model and a single
36      regularization term. This cost function is used in the gravity inversion.      regularization term. This cost function is used in the gravity inversion.
37      """      """
38        provides_inverse_Hessian_approximation=True
39    
40      def __init__(self, regularization, mapping, forwardmodel):      def __init__(self, regularization, mapping, forwardmodel):
41          """          """
42          constructor stores the supplied object references and sets default          constructor stores the supplied object references and sets default
# Line 138  class SimpleInversionCostFunction(Metere Line 140  class SimpleInversionCostFunction(Metere
140            inverse Hessian approximation.            inverse Hessian approximation.
141                        
142          """          """
143          print "nverseHessianApproximation:"          print "inverse Hessian approximation:"
144          print "Y  = ",r[0]          print "Y  = ",r[0]
145          print "X  = ",r[1]          print "X  = ",r[1]
146          m=self.regularization.getInverseHessianApproximation(m, r, *args[2])          m=self.regularization.getInverseHessianApproximation(m, r, *args[2])
# Line 149  class SimpleInversionCostFunction(Metere Line 151  class SimpleInversionCostFunction(Metere
151          """          """
152          notifies the class that the Hessian operator needs to be updated.          notifies the class that the Hessian operator needs to be updated.
153          """          """
         self.regularization.updateHessian()  
154            self.regularization.updateHessian()
155    

Legend:
Removed from v.4080  
changed lines
  Added in v.4095

  ViewVC Help
Powered by ViewVC 1.1.26