summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analyze_correlations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze_correlations.cpp b/src/analyze_correlations.cpp
index 5f3dda0..91c2e7f 100644
--- a/src/analyze_correlations.cpp
+++ b/src/analyze_correlations.cpp
@@ -20,7 +20,7 @@ double mean(int N, T *data) {
double squared_mean(int N, double *data) {
double total = 0;
for (int i = 0; i < N; i++) {
- total += data[i];
+ total += pow(data[i], 2);
}
return total / N;