mcmc_func.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:CRN_ProbabilisticInversion 作者: elaloy 项目源码 文件源码
def CalcDelta(nCR,delta_tot,delta_normX,CR):
    # Calculate total normalized Euclidean distance for each crossover value

    # Derive sum_p2 for each different CR value 
    for zz in range(0,nCR):

        # Find which chains are updated with zz/MCMCPar.nCR
        idx = np.argwhere(CR==(1.0+zz)/nCR);idx=idx[:,0]

        # Add the normalized squared distance tot the current delta_tot;
        delta_tot[0,zz] = delta_tot[0,zz] + np.sum(delta_normX[idx])

    return delta_tot
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号