From b8db34d37e929b32fa411bd88e97ab2488754dcb Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 15 Dec 2020 09:56:13 +0000 Subject: No need to pass lambda by address --- src/lmm.cpp | 8 ++++---- 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; diff --git a/src/lmm.h b/src/lmm.h index f603599..736c679 100644 --- a/src/lmm.h +++ b/src/lmm.h @@ -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); }; -- cgit v1.2.3