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

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

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

revision 4394 by caltinay, Tue May 7 04:56:59 2013 UTC revision 4416 by jfenwick, Fri May 17 02:32:33 2013 UTC
# Line 396  class Regularization(CostFunction): Line 396  class Regularization(CostFunction):
396      def getValue(self, m, grad_m):      def getValue(self, m, grad_m):
397          """          """
398          returns the value of the cost function J with respect to m.          returns the value of the cost function J with respect to m.
399            This equation is specified in the inversion cookbook.
400    
401          :rtype: ``float``          :rtype: ``float``
402          """          """
# Line 430  class Regularization(CostFunction): Line 431  class Regularization(CostFunction):
431      def getGradient(self, m,  grad_m):      def getGradient(self, m,  grad_m):
432          """          """
433          returns the gradient of the cost function J with respect to m.          returns the gradient of the cost function J with respect to m.
434          The function returns Y_k=dPsi/dm_k and X_kj=dPsi/dm_kj          
435            :note: This implementation  returns Y_k=dPsi/dm_k and X_kj=dPsi/dm_kj
436          """          """
437    
438          mu=self.__mu          mu=self.__mu

Legend:
Removed from v.4394  
changed lines
  Added in v.4416

  ViewVC Help
Powered by ViewVC 1.1.26