modelObj and dataObj --> eval

This commit is contained in:
rowanc1
2014-05-18 17:09:44 -07:00
parent c153183894
commit 8f69670fce
5 changed files with 26 additions and 28 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ class BetaEstimate_ByEig(InversionDirective):
u = self.invProb.u_current or self.prob.fields(m)
x0 = np.random.rand(*m.shape)
t = x0.dot(self.dmisfit.dataObj2Deriv(m,x0,u=u))
b = x0.dot(self.reg.modelObj2Deriv(m, v=x0))
t = x0.dot(self.dmisfit.eval2Deriv(m,x0,u=u))
b = x0.dot(self.reg.eval2Deriv(m, v=x0))
self.beta0 = self.beta0_ratio*(t/b)
self.invProb.beta = self.beta0