code: def kappa(self, x, y, kwargs, diff=diff):
          
          f_xx, f_xy, f_yx, f_yy = self.hessian(x, y, kwargs, diff=diff)
          kappa = 1./2 * (f_xx + f_yy)
          return kappa
docs: computes the convergence
          :return: kappa