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

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

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

revision 4212 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4213 by caltinay, Tue Feb 19 01:16:29 2013 UTC
# Line 67  class Mapping(object): Line 67  class Mapping(object):
67          """          """
68          raise NotImplementedError          raise NotImplementedError
69    
70            
71  class LinearMapping(Mapping):  class LinearMapping(Mapping):
72      """      """
73      Maps a parameter by a linear transformation p = a * m + p0      Maps a parameter by a linear transformation p = a * m + p0
# Line 95  class LinearMapping(Mapping): Line 95  class LinearMapping(Mapping):
95          returns the value of the inverse of the mapping for s          returns the value of the inverse of the mapping for s
96          """          """
97          return self.__a_inv * ( p - self.__p0)          return self.__a_inv * ( p - self.__p0)
98        
99      def getTypicalDerivative(self):      def getTypicalDerivative(self):
100          """          """
101          returns a typical value for the derivative          returns a typical value for the derivative
102          """          """
103          return self.__a          return self.__a
104            
105  class DensityMapping(LinearMapping):  class DensityMapping(LinearMapping):
106      """      """
107      Density mapping with depth weighting      Density mapping with depth weighting

Legend:
Removed from v.4212  
changed lines
  Added in v.4213

  ViewVC Help
Powered by ViewVC 1.1.26