summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-26 18:26:00 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-26 18:26:00 -0400
commit577fbfe6a312900e5467e30aa2b7ad1ac7264e61 (patch)
tree096940200e0ee1e0e4438a39c9b6a9caf9a9e2a7
parent5f1eb9a12821e7462b7b2853e0d95c8c863bf900 (diff)
downloadc++-577fbfe6a312900e5467e30aa2b7ad1ac7264e61.tar.gz
c++-577fbfe6a312900e5467e30aa2b7ad1ac7264e61.tar.bz2
c++-577fbfe6a312900e5467e30aa2b7ad1ac7264e61.zip
fixed dumb bug
-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;