From e944f9c4aa2304b18fdef47610db7d00af2071ce Mon Sep 17 00:00:00 2001 From: Andrew Zhen Ning Yong Date: Fri, 21 Feb 2020 11:18:02 +0000 Subject: [PATCH] For 'cst' model, changed bug from x[0] -> p[0]. --- 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 23d9ba9..daf51f7 100644 --- a/lib/Physics/CorrelatorFitter.cpp +++ b/lib/Physics/CorrelatorFitter.cpp @@ -104,7 +104,7 @@ DoubleModel CorrelatorModels::makeConstModel(void) mod.setFunction([](const double *x, const double *p __dumb) { - return x[0]; + return p[0]; }, 1, 1); mod.parName().setName(0, "cst");