Start branch for regularization

Add LinearSurvey
Add LinearProblem
This commit is contained in:
D Fournier
2016-01-20 14:23:42 -08:00
parent cdf0ebf8d0
commit 6fcd826673
2 changed files with 23 additions and 1 deletions
+8 -1
View File
@@ -1,6 +1,5 @@
import Utils, numpy as np, scipy.sparse as sp, uuid
class BaseRx(object):
"""SimPEG Receiver Object"""
@@ -374,3 +373,11 @@ class BaseSurvey(object):
self.dobs = self.dtrue+noise
self.std = self.dobs*0 + std
return self.dobs
class LinearSurvey(BaseSurvey):
def projectFields(self, u):
return u
@property
def nD(self):
return self.prob.G.shape[1]