From 417e068485dc05e59a4bc73ce5e9c93a4508f176 Mon Sep 17 00:00:00 2001 From: Andrew Zhen Ning Yong Date: Thu, 7 May 2020 17:08:12 +0100 Subject: [PATCH] Swapped p[0] -> p[1] such that p[0] is always the effective mass parameter. --- lib/Physics/CorrelatorFitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Physics/CorrelatorFitter.cpp b/lib/Physics/CorrelatorFitter.cpp index daf51f7..7784f5d 100644 --- a/lib/Physics/CorrelatorFitter.cpp +++ b/lib/Physics/CorrelatorFitter.cpp @@ -117,7 +117,7 @@ DoubleModel CorrelatorModels::makeLinearModel(void) mod.setFunction([](const double *x, const double *p) { - return p[0] + p[1]*x[0]; + return p[1] + p[0]*x[0]; }, 1, 2); return mod;