@staticmethod
    def center_kernel_matrix(K):
        n = shape(K)[0]
        H = eye(n) - 1.0 / n
        return  1.0 / n * H.dot(K.dot(H))
Centers the kernel matrix via a centering matrix H=I-1/n and returns HKH
dataset/ETHPy150Open karlnapf/kameleon-mcmc/kameleon_mcmc/kernel/Kernel.py/Kernel.center_kernel_matrix