stan_cpl.py 文件源码

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

项目:hh0 作者: sfeeney 项目源码 文件源码
def riess_reject(n_c_ch, app_mag_err_c, sig_int_c, res, threshold = 2.7):

    res_scaled = np.zeros(res.shape)
    for i in range(0, len(n_c_ch)):
        res_scaled[i, 0: n_c_ch[i]] = np.abs(res[i, 0: n_c_ch[i]]) / \
                                      np.sqrt(app_mag_err_c[i, 0: n_c_ch[i]] ** 2 + 
                                              sig_int_c ** 2)
    to_rej = np.unravel_index(np.argmax(res_scaled), res.shape)
    if res_scaled[to_rej] > threshold:
        return to_rej
    else:
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号