From 4a56c11c95e9f13670c906b353fe9360344eb913 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 28 Nov 2020 14:39:05 +0000 Subject: Sane random generator handling --- src/param.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/param.h') diff --git a/src/param.h b/src/param.h index 9ad14b2..eb2cef7 100644 --- a/src/param.h +++ b/src/param.h @@ -23,6 +23,7 @@ #include "debug.h" #include "gsl/gsl_matrix.h" +#include #include "gsl/gsl_vector.h" #include #include @@ -211,7 +212,8 @@ public: size_t n_accept; // Number of acceptance. size_t n_mh; // # MH steps in each iter. double geo_mean; // Mean of geometric dist. - long int randseed; + long int randseed; // holds -seed parameter + gsl_rng *gsl_r; // Track the randomizer double trace_G; HYPBSLMM cHyp_initial; @@ -324,8 +326,9 @@ public: set setKSnps; // Set of snps for K (-ksnps and LOCO) set setGWASnps; // Set of snps for GWA (-gwasnps and LOCO) - // Constructor. + // Constructor and destructor PARAM(); + ~PARAM(); // Functions. void ReadFiles(); -- cgit v1.2.3