def _calcTheoryM(self, TOL, theta, Vl, Wl, ceil=True, minM=1):
Ca = norm.ppf(self.params.confidence)
M = (theta * TOL / Ca)**-2 *\
np.sum(np.sqrt(Wl * Vl)) * np.sqrt(Vl / Wl)
M = np.maximum(M, minM)
M[np.isnan(M)] = minM
if ceil:
M = np.ceil(M).astype(np.int)
return M
评论列表
文章目录