analysis_tools.py 文件源码

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

项目:DVH-Analytics 作者: cutright 项目源码 文件源码
def calc_eud(dvh, a):
    v = -np.gradient(dvh)

    dose_bins = np.linspace(1, np.size(dvh), np.size(dvh))
    dose_bins = np.round(dose_bins, 3)
    bin_centers = dose_bins - 0.5
    eud = np.power(np.sum(np.multiply(v, np.power(bin_centers, a))), 1 / float(a))
    eud = np.round(eud, 2) * 0.01

    return eud
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号