diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-04 14:45:48 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-04 14:45:48 -0500 |
commit | f3f28630a8cdfa03f29490e26d6b0aeb2fe678b7 (patch) | |
tree | 1a013999add554b5b8f78372083a2c250c75f306 /lib/wolff.h | |
parent | 12a3623728dcbe2ef1e8082310c86cec4e4578d8 (diff) | |
download | c++-f3f28630a8cdfa03f29490e26d6b0aeb2fe678b7.tar.gz c++-f3f28630a8cdfa03f29490e26d6b0aeb2fe678b7.tar.bz2 c++-f3f28630a8cdfa03f29490e26d6b0aeb2fe678b7.zip |
moved measurement tools to own file
Diffstat (limited to 'lib/wolff.h')
-rw-r--r-- | lib/wolff.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/wolff.h b/lib/wolff.h index 44e5926..ce7040a 100644 --- a/lib/wolff.h +++ b/lib/wolff.h @@ -19,6 +19,7 @@ #include "convex.h" #include "graph.h" #include "tree.h" +#include "measurement.h" typedef struct { graph_t *g; @@ -33,33 +34,7 @@ typedef struct { q_t q; } ising_state_t; -typedef struct { - uint64_t n; - double x; - double dx; - double x2; - double m2; - double m4; - double c; - double dc; -} meas_t; - -typedef struct { - uint64_t n; - uint64_t W; - double *OO; - dll_t *Op; - double O; - double O2; -} autocorr_t; - v_t flip_cluster(ising_state_t *s, v_t v0, q_t s1, gsl_rng *r); graph_t *graph_add_ext(const graph_t *g); -void update_meas(meas_t *m, double x); - -void update_autocorr(autocorr_t *OO, double O); - -double rho(autocorr_t *o, uint64_t i); - |