diff options
author | Pjotr Prins | 2020-12-15 09:56:13 +0000 |
---|---|---|
committer | Pjotr Prins | 2020-12-15 09:56:13 +0000 |
commit | b8db34d37e929b32fa411bd88e97ab2488754dcb (patch) | |
tree | bb4c2a3d3848cb32040a4c16f5f4521b4518a46e | |
parent | 969b64ca78292d427b2484c635a4e1780c23a511 (diff) | |
download | pangemma-b8db34d37e929b32fa411bd88e97ab2488754dcb.tar.gz |
No need to pass lambda by address
-rw-r--r-- | src/lmm.cpp | 8 | ||||
-rw-r--r-- | src/lmm.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp index 5e53fa2..31c42f5 100644 --- a/src/lmm.cpp +++ b/src/lmm.cpp @@ -114,8 +114,8 @@ void LMM::WriteFiles() { outfile << "se" << "\t"; } - if (!is_legacy_mode()) - outfile << "logl_H1" << "\t"; // we may make this an option + // a_mode 1 + outfile << "logl_H1" << "\t"; // we may make this an option switch(a_mode) { case 1: @@ -1114,7 +1114,7 @@ void LogRL_dev12(double l, void *params, double *dev1, double *dev2) { return; } -void LMM::CalcRLWald(const double &l, const FUNC_PARAM ¶ms, double &beta, +void LMM::CalcRLWald(const double l, const FUNC_PARAM ¶ms, double &beta, double &se, double &p_wald) { size_t n_cvt = params.n_cvt; size_t n_index = (n_cvt + 2 + 1) * (n_cvt + 2) / 2; @@ -1156,7 +1156,7 @@ void LMM::CalcRLWald(const double &l, const FUNC_PARAM ¶ms, double &beta, return; } -void LMM::CalcRLScore(const double &l, const FUNC_PARAM ¶ms, double &beta, +void LMM::CalcRLScore(const double l, const FUNC_PARAM ¶ms, double &beta, double &se, double &p_score) { size_t n_cvt = params.n_cvt; size_t n_index = (n_cvt + 2 + 1) * (n_cvt + 2) / 2; @@ -118,9 +118,9 @@ public: const gsl_vector *env); void WriteFiles(); - void CalcRLWald(const double &lambda, const FUNC_PARAM ¶ms, double &beta, + void CalcRLWald(const double lambda, const FUNC_PARAM ¶ms, double &beta, double &se, double &p_wald); - void CalcRLScore(const double &l, const FUNC_PARAM ¶ms, double &beta, + void CalcRLScore(const double l, const FUNC_PARAM ¶ms, double &beta, double &se, double &p_score); }; |