From e28504e5365684676d64ffb3fcc7095521820ec0 Mon Sep 17 00:00:00 2001 From: Kipp Cannon Date: Wed, 23 Nov 2016 00:07:33 +0900 Subject: [PATCH] rate_estimation.c: address some review requests - update comments --- gstlal-inspiral/python/rate_estimation.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gstlal-inspiral/python/rate_estimation.c b/gstlal-inspiral/python/rate_estimation.c index 66784b87d..c736f845c 100644 --- a/gstlal-inspiral/python/rate_estimation.c +++ b/gstlal-inspiral/python/rate_estimation.c @@ -149,8 +149,9 @@ static double log_posterior(const double *ln_f_over_b, int n, double Rf, double if(i) { /* * for these entries, compute the sum of log(Rf f / (Rb b) - * + 1) by approximating it with a numerical integration - * of the exact addend + * + 1) by approximating it with a numerical integration of + * the addend (evaluated using the approximations described + * above) */ gsl_function _integrand = { .function = integrand, @@ -163,9 +164,8 @@ static double log_posterior(const double *ln_f_over_b, int n, double Rf, double } /* - * now compute the sum of log(Rf f / (Rb b) + 1) for the remaining - * entries with an explicit loop but using approximations - * (described above) for cases in which the addend is large + * now explicitly compute the sum of log(Rf f / (Rb b) + 1) for the + * remaining entries */ for(; i < n; i++) { -- GitLab