aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2020-12-15 09:56:13 +0000
committerPjotr Prins2020-12-15 09:56:13 +0000
commitb8db34d37e929b32fa411bd88e97ab2488754dcb (patch)
treebb4c2a3d3848cb32040a4c16f5f4521b4518a46e
parent969b64ca78292d427b2484c635a4e1780c23a511 (diff)
downloadpangemma-b8db34d37e929b32fa411bd88e97ab2488754dcb.tar.gz
No need to pass lambda by address
-rw-r--r--src/lmm.cpp8
-rw-r--r--src/lmm.h4
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 &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;
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 &params, double &beta,
+ void CalcRLWald(const double lambda, const FUNC_PARAM &params, double &beta,
double &se, double &p_wald);
- void CalcRLScore(const double &l, const FUNC_PARAM &params, double &beta,
+ void CalcRLScore(const double l, const FUNC_PARAM &params, double &beta,
double &se, double &p_score);
};