aboutsummaryrefslogtreecommitdiff
path: root/src/statistics.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-14 17:58:55 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:53 +0100
commit6a5422356c15962726df2261aa53354b0ff12662 (patch)
treeb6c5ae80b837bda38957cef07816b511515ffdcb /src/statistics.h
parent6a476e010468f27e02df6bb90a1ea197bd9d039d (diff)
Reduce the scope of "count"
Lists of counts had pervaded every corner of CrystFEL, being used as markers for the presence of reflections. Now we have a better way of doing this, the ReflItemList, and few parts of the suite apart from process_hkl have any business knowing how many observations were made of a particular reflection.
Diffstat (limited to 'src/statistics.h')
-rw-r--r--src/statistics.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/statistics.h b/src/statistics.h
index 5e3ca52c..c6c2f09c 100644
--- a/src/statistics.h
+++ b/src/statistics.h
@@ -16,18 +16,20 @@
#ifndef STATISTICS_H
#define STATISTICS_H
-extern double stat_scale_intensity(const double *ref1, const unsigned int *c1,
- const double *ref2, const unsigned int *c2);
-extern double stat_r2(const double *ref1, const unsigned int *c1,
- const double *ref2, const unsigned int *c2,
- double *scalep);
+#include "utils.h"
-extern double stat_rmerge(const double *ref1, const unsigned int *c1,
- const double *ref2, const unsigned int *c2,
- double *scalep);
+extern double stat_scale_intensity(const double *ref1, const double *ref2,
+ ReflItemList *items);
+
+extern double stat_rmerge(const double *ref1, const double *ref2,
+ ReflItemList *items, double *scalep);
+
+extern double stat_r2(const double *ref1, const double *ref2,
+ ReflItemList *items, double *scalep);
+
+extern double stat_pearson(const double *ref1, const double *ref2,
+ ReflItemList *items);
-extern double stat_pearson(const double *ref1, const unsigned int *c1,
- const double *ref2, const unsigned int *c2);
#endif /* STATISTICS_H */