aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-10-17 09:33:29 -0500
committertlatorre <tlatorre@uchicago.edu>2018-10-17 09:33:29 -0500
commit643204e807d5e78f883fc30dc7383a209e86dbc5 (patch)
treee9e09dec819cd9b7c45bf8081b0acb7a329d5611 /src/misc.h
parent09f7f3ec8bbff5102d0447ee664df3f3a404c9bc (diff)
downloadsddm-643204e807d5e78f883fc30dc7383a209e86dbc5.tar.gz
sddm-643204e807d5e78f883fc30dc7383a209e86dbc5.tar.bz2
sddm-643204e807d5e78f883fc30dc7383a209e86dbc5.zip
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
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index f44125a..46931cb 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -16,5 +16,7 @@ int allclose(double *a, double *b, size_t n, double rel_tol, double abs_tol);
double logsumexp(double *a, size_t n);
double norm(double x, double mu, double sigma);
double norm_cdf(double x, double mu, double sigma);
+double mean(const double *x, size_t n);
+double std(const double *x, size_t n);
#endif