summaryrefslogtreecommitdiff
path: root/lib/correlation.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/correlation.h')
-rw-r--r--lib/correlation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/correlation.h b/lib/correlation.h
index 26c3a99..49c6ff2 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->ImF[j]);
+ total += norm_squared(s->ReF[j]) + norm_squared(s->ReF[j]);
}
return total / s->D;