diff options
author | Pjotr Prins | 2020-11-28 14:39:05 +0000 |
---|---|---|
committer | Pjotr Prins | 2020-11-29 08:50:44 +0000 |
commit | 4a56c11c95e9f13670c906b353fe9360344eb913 (patch) | |
tree | cc338502b5066fd15217eae948df1b9382c5a049 /src/bslmm.h | |
parent | ad2d303ebf4999a9e4833beb73a4bc6f0dee4952 (diff) | |
download | pangemma-4a56c11c95e9f13670c906b353fe9360344eb913.tar.gz |
Sane random generator handling
Diffstat (limited to 'src/bslmm.h')
-rw-r--r-- | src/bslmm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bslmm.h b/src/bslmm.h index d2dadbf..93dadf9 100644 --- a/src/bslmm.h +++ b/src/bslmm.h @@ -20,7 +20,7 @@ #define __BSLMM_H__ #include <gsl/gsl_randist.h> -#include <gsl/gsl_rng.h> +// #include <gsl/gsl_rng.h> #include <map> #include <vector> @@ -60,7 +60,8 @@ public: size_t n_accept; // Number of acceptances. size_t n_mh; // Number of MH steps per iter. double geo_mean; // Mean of geometric dist. - long int randseed; + // long int randseed; + gsl_rng *gsl_r; // Track randomizer state double trace_G; HYPBSLMM cHyp_initial; @@ -88,7 +89,7 @@ public: vector<SNPINFO> snpInfo; // Not included in PARAM. - gsl_rng *gsl_r; + // gsl_rng *gsl_r; gsl_ran_discrete_t *gsl_t; map<size_t, size_t> mapRank2pos; |