From 577fbfe6a312900e5467e30aa2b7ad1ac7264e61 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 18:26:00 -0400 Subject: fixed dumb bug --- lib/correlation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 & 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; -- cgit v1.2.3-70-g09d2