summaryrefslogtreecommitdiff
path: root/lib/correlation.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-10-10 21:45:32 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-10-10 21:45:32 -0400
commita43ff1f98e9b9814f858bccb11c174b418458491 (patch)
treeae7e094d914eddb8a1ae9548420ba8c2f329ffae /lib/correlation.h
parent6e264d243f0b29d90e90b605b6cdeab8227129c9 (diff)
downloadc++-a43ff1f98e9b9814f858bccb11c174b418458491.tar.gz
c++-a43ff1f98e9b9814f858bccb11c174b418458491.tar.bz2
c++-a43ff1f98e9b9814f858bccb11c174b418458491.zip
big rearrangement of files to make libraries and example (research) files clearer, and changed to c++ std lib random numbers
Diffstat (limited to 'lib/correlation.h')
-rw-r--r--lib/correlation.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/correlation.h b/lib/correlation.h
deleted file mode 100644
index 29357a5..0000000
--- a/lib/correlation.h
+++ /dev/null
@@ -1,23 +0,0 @@
-
-#pragma once
-
-#include "types.h"
-#include "state.h"
-
-#include <fftw3.h>
-
-template <class R_t, class X_t>
-double correlation_length(const state_t <R_t, X_t>& s) {
- double total = 0;
-
-#ifdef DIMENSION
- for (D_t j = 0; j < DIMENSION; j++) {
-#else
- for (D_t j = 0; j < s.D; j++) {
-#endif
- total += norm_squared(s.ReF[j]) + norm_squared(s.ImF[j]);
- }
-
- return total / s.D;
-}
-