def calculate_auc(self, y, dx):
""" calculate the Area Under the Curve using the average of the
estimated areas by the two composites the Simpsons's and the
trapezoidal rules.
"""
AUC = (simps(y, dx=dx) + trapz(y, dx=dx)) / 2.
return AUC
评论列表
文章目录