示例#1
0
文件: kalman.py 项目: ddyak/sctdtf
def gcgtinv(Gk, Cl):
    """ $(G_kC_{k-1}G_k^T)^{-1}$ """
    return np.linalg.inv(et.mtxabat(Gk, Cl))
示例#2
0
文件: kalman.py 项目: ddyak/sctdtf
def covariance_exact(Cl, Kk, Gk):
    """ Covariance update for exact constraints """
    # Rlk = et.mtxabat(Gk, Cl)
    # return Cl - et.mtxab(Kk, 2*et.mtxab(Gk, Cl) - et.mtxabt(Rlk, Kk))
    return et.mtxabat(np.eye(Cl.shape[-1]) - et.mtxab(Kk, Gk), Cl)
示例#3
0
文件: kalman.py 项目: ddyak/sctdtf
def predicted_resid_uncert(Vk, Hk, Cl):
    """ Uncertainty of the predicted residual
        $V_k + H_k C_{k-1} H_k^T$ """
    return Vk + et.mtxabat(Hk, Cl)
示例#4
0
文件: kalman.py 项目: ddyak/sctdtf
def covariance_full(Cl, Kk, Hk, Vk):
    """ Full expression for covariance update """
    return et.mtxabat(np.eye(Cl.shape[-1]) - et.mtxab(Kk, Hk),
                      Cl) + et.mtxabat(Kk, Vk)
示例#5
0
def covariance_exact(Cl, Kk, Gk):
    """ Covariance update for exact constraints """
    return et.mtxabat(np.eye(Cl.shape[-1]) - et.mtxab(Kk, Gk), Cl)