24 |
|
|
25 |
__all__ = [ 'InversionCostFunction'] |
__all__ = [ 'InversionCostFunction'] |
26 |
|
|
27 |
from costfunctions import MeteredCostFunction |
from .costfunctions import MeteredCostFunction |
28 |
from mappings import Mapping |
from .mappings import Mapping |
29 |
from forwardmodels import ForwardModel |
from .forwardmodels import ForwardModel |
30 |
from esys.escript.pdetools import ArithmeticTuple |
from esys.escript.pdetools import ArithmeticTuple |
31 |
from esys.escript import Data |
from esys.escript import Data |
32 |
import numpy as np |
import numpy as np |
33 |
|
|
34 |
|
import sys |
35 |
|
if sys.version_info.major>2: |
36 |
|
xrange=range |
37 |
|
|
38 |
|
|
39 |
class InversionCostFunction(MeteredCostFunction): |
class InversionCostFunction(MeteredCostFunction): |
40 |
""" |
""" |
41 |
Class to define cost function *J(m)* for inversion with one or more |
Class to define cost function *J(m)* for inversion with one or more |