Skip to content

Commit 8a63537

Browse files
authored
Merge pull request #159 from arokem/fix_aic_correction
The default should be not to correct, but this was not previously imp…
2 parents 7b5254d + 7a7023a commit 8a63537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nitime/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,10 +2117,10 @@ def akaike_information_criterion(ecov, p, m, Ntotal, corrected=False):
21172117
AIC = (2 * (np.log(linalg.det(ecov))) +
21182118
((2 * (p ** 2) * m) / (Ntotal)))
21192119

2120-
if corrected is None:
2121-
return AIC
2122-
else:
2120+
if corrected:
21232121
return AIC + (2 * m * (m + 1)) / (Ntotal - m - 1)
2122+
else:
2123+
return AIC
21242124

21252125

21262126
def bayesian_information_criterion(ecov, p, m, Ntotal):

0 commit comments

Comments
 (0)