From ebc95aa65925b06ce06c9db2791d8143448f2643 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 28 Aug 2018 10:39:36 -0500 Subject: add path to the likelihood fit This commit updates the likelihood fit to use the KL path expansion. Currently, I'm just using one coefficient for the path in both x and y. --- src/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index 3ef6531..baf0914 100644 --- a/src/test.c +++ b/src/test.c @@ -342,6 +342,7 @@ int test_path(char *err) double pos[3], dir[3]; double E, mom, beta; double s; + double theta0; T0 = 1.0; range = 1.0; @@ -371,7 +372,7 @@ int test_path(char *err) t_expected = s/(beta*SPEED_OF_LIGHT); - path_eval(p,s,pos,dir,&T,&t); + path_eval(p,s,pos,dir,&T,&t,&theta0); for (k = 0; k < 3; k++) { if (!isclose(pos[k], pos_expected[k], 1e-9, 1e-9)) { -- cgit