COPparamsFs.py 文件源码

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

项目:wiicop 作者: barnabuskev 项目源码 文件源码
def pathl(cop_dat):
    # to calculate COP path length
    delt = np.diff(cop_dat[:,(0,1)], axis = 0)
    sqs = np.square(delt)
    sum_s = np.add(sqs[:,0],sqs[:,1])
    lgths = np.sqrt(sum_s)
    return np.sum(lgths)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号