def estimateMonteCarloSampleCount(self, TOL):
theta = self._calcTheta(TOL, self.bias)
V = self.Vl_estimate[self.last_itr.lvls_find([])]
if np.isnan(V):
return np.nan
Ca = norm.ppf(self.params.confidence)
return np.maximum(np.reshape(self.params.M0, (1,))[-1],
int(np.ceil((theta * TOL / Ca)**-2 * V)))
################## Bayesian specific functions
评论列表
文章目录