From bcf9b4c9b49e9242146b0384657f3b7c26bc340a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 4 Jun 2014 17:50:30 +0200 Subject: partialator: Use reciprocal scale factors instead --- src/hrs-scaling.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hrs-scaling.c') diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index cba21b74..23d58e8f 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -125,7 +125,7 @@ static void run_scale_job(void *vwargs, int cookie) Ihl = get_intensity(refl) / corr; num += Ih * Ihl; - den += Ihl * Ihl; + den += Ih * Ih; } @@ -266,7 +266,7 @@ static void run_merge_job(void *vwargs, int cookie) Ihl = get_intensity(refl) / corr; - num += Ihl * G; + num += Ihl / G; den += 1.0; red++; @@ -388,7 +388,7 @@ static void run_esd_job(void *vwargs, int cookie) corr = get_partiality(refl) * get_lorentz(refl); Ih = get_intensity(f); - Ihl = G * get_intensity(refl) / corr; + Ihl = get_intensity(refl) / (G*corr); num += pow(Ihl - Ih, 2.0); -- cgit v1.2.3