aboutsummaryrefslogtreecommitdiff
path: root/src/lmm.cpp
diff options
context:
space:
mode:
authorPjotr Prins2020-12-15 09:56:13 +0000
committerPjotr Prins2020-12-15 09:56:13 +0000
commitb8db34d37e929b32fa411bd88e97ab2488754dcb (patch)
treebb4c2a3d3848cb32040a4c16f5f4521b4518a46e /src/lmm.cpp
parent969b64ca78292d427b2484c635a4e1780c23a511 (diff)
downloadpangemma-b8db34d37e929b32fa411bd88e97ab2488754dcb.tar.gz
No need to pass lambda by address
Diffstat (limited to 'src/lmm.cpp')
-rw-r--r--src/lmm.cpp8
1 files changed, 4 insertions, 4 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 &params, double &beta,
+void LMM::CalcRLWald(const double l, const FUNC_PARAM &params, 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 &params, double &beta,
return;
}
-void LMM::CalcRLScore(const double &l, const FUNC_PARAM &params, double &beta,
+void LMM::CalcRLScore(const double l, const FUNC_PARAM &params, 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;