summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/correlation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/correlation.h b/lib/correlation.h
index 23b1bd9..d08f713 100644
--- a/lib/correlation.h
+++ b/lib/correlation.h
@@ -11,7 +11,7 @@ double correlation_length(const state_t <R_t, X_t>& s) {
double total = 0;
for (D_t j = 0; j < s.D; j++) {
- total += norm_squared(s.ReF[j]) + norm_squared(s.ReF[j]);
+ total += norm_squared(s.ReF[j]) + norm_squared(s.ImF[j]);
}
return total / s.D;