ns_group = np.count_nonzero(mask)
if method == "t-test":
ns_rest = np.count_nonzero(mask_rest)
elif method == "t-test_overestim_var":
// hack for overestimating the variance for small groups
ns_rest = ns_group
else:
After Change
if self.ireference is not None:
mean_rest = self.means[self.ireference]
var_rest = self.vars[self.ireference]
ns_other = np.count_nonzero(self.groups_masks[self.ireference])
else:
mean_rest = self.means_rest[group_index]
var_rest = self.vars_rest[group_index]
ns_other = self.X.shape[0] - ns_group