From 643204e807d5e78f883fc30dc7383a209e86dbc5 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 17 Oct 2018 09:33:29 -0500 Subject: fix a bug in the theta0 calculation for a path This commit fixes a bug in the calculation of the average rms width of the angular distribution for a path with a KL expansion. I also made a lot of updates to the test-path program: - plot the distribution of the KL expansion coefficients - plot the standard deviation of the angular distribution as a function of distance along with the prediction - plot the simulated and reconstructed path in 3D --- src/scattering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scattering.c') diff --git a/src/scattering.c b/src/scattering.c index c95f31e..0247c62 100644 --- a/src/scattering.c +++ b/src/scattering.c @@ -18,7 +18,7 @@ static double xlo = -1.0; static double xhi = 1.0; static size_t nx = 1000; static double ylo = 0.0; -static double yhi = 1.0; +static double yhi = MAX_THETA0; static size_t ny = 1000; static double *x; -- cgit