Commit 3758aaa2 authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent 3d6b510e
......@@ -35,7 +35,6 @@ class Hamiltonian(Energy):
self._ic = iteration_controller
self._ic_samp = iteration_controller_sampling
self._prior = GaussianEnergy(Variable(self.position))
self._precond = self._prior.curvature
def at(self, position):
return self.__class__(, self._ic, self._ic_samp)
......@@ -59,7 +58,7 @@ class Hamiltonian(Energy):
c = SamplingEnabler(self._lh.curvature, prior_curv.inverse,
self._ic_samp, prior_curv.inverse)
return InversionEnabler(c, self._ic, self._precond)
return InversionEnabler(c, self._ic, prior_curv)
def __str__(self):
res = 'Likelihood:\t{:.2E}\n'.format(self._lh.value)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment