From 87d72e34a321aa53ad4e89f90058d5867cbd3261 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Jul 2010 19:02:09 +0200 Subject: compare_hkl: Take counts into account --- src/reflections.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/reflections.c') diff --git a/src/reflections.c b/src/reflections.c index 2711936b..e93433d6 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -166,3 +166,16 @@ double *ideal_intensities(double complex *sfac) return ref; } + + +void divide_down(double *intensities, unsigned int *counts) +{ + int i; + + for ( i=0; i 0 ) { + intensities[i] /= (double)counts[i]; + counts[i] = 1; + } + } +} -- cgit v1.2.3