/[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 4122 by gross, Thu Dec 20 05:42:35 2012 UTC revision 4123 by gross, Thu Dec 20 23:47:55 2012 UTC
# Line 128  class InversionCostFunction(MeteredCostF Line 128  class InversionCostFunction(MeteredCostF
128          :rtype: ``int``          :rtype: ``int``
129          """          """
130          return self.__num_tradeoff_factors          return self.__num_tradeoff_factors
131      def getForwardModels(self):      def getForwardModel(self, idx=None):
132          """          """
133          returns the forward models as a list          returns the *idx*-th forward model.
134            :param idx: model index. If cost function contains one model only `idx` can be omitted.
135            :type idx: `int`
136          """          """
137          return self.forward_models          if idx==None: idx=0
138            f=self.forward_models[idx]
139        if isinstance(f, ForwardModel):
140                  F=f
141            else:
142              F=f[0]
143            return F
144                    
145      def getRegularization(self):      def getRegularization(self):
146          """          """

Legend:
Removed from v.4122  
changed lines
  Added in v.4123

  ViewVC Help
Powered by ViewVC 1.1.26