diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-08-28 10:39:36 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-08-28 10:39:36 -0500 |
commit | ebc95aa65925b06ce06c9db2791d8143448f2643 (patch) | |
tree | c1f602a360e8d770500241b3848a6e1a494317b2 /src/test.c | |
parent | ac721f37eb1b14ec91dbb14450752cb240a721cf (diff) | |
download | sddm-ebc95aa65925b06ce06c9db2791d8143448f2643.tar.gz sddm-ebc95aa65925b06ce06c9db2791d8143448f2643.tar.bz2 sddm-ebc95aa65925b06ce06c9db2791d8143448f2643.zip |
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.
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) { |