aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/statistics.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/statistics.h')
-rw-r--r--libcrystfel/src/statistics.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/libcrystfel/src/statistics.h b/libcrystfel/src/statistics.h
new file mode 100644
index 00000000..8fa78ea6
--- /dev/null
+++ b/libcrystfel/src/statistics.h
@@ -0,0 +1,45 @@
+/*
+ * statistics.h
+ *
+ * Structure-factor statistics
+ *
+ * (c) 2006-2010 Thomas White <taw@physics.org>
+ *
+ * Part of CrystFEL - crystallography with a FEL
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifndef STATISTICS_H
+#define STATISTICS_H
+
+
+#include "reflist.h"
+
+extern double stat_scale_intensity(RefList *list1, RefList *list2);
+
+extern double stat_r1_zero(RefList *list1, RefList *list2,
+ double *scalep, int u);
+extern double stat_r1_ignore(RefList *list1, RefList *list2,
+ double *scalep, int u);
+
+extern double stat_r2(RefList *list1, RefList *list2, double *scalep, int u);
+
+extern double stat_r1_i(RefList *list1, RefList *list2, double *scalep, int u);
+
+extern double stat_rdiff_zero(RefList *list1, RefList *list2,
+ double *scalep, int u);
+extern double stat_rdiff_ignore(RefList *list1, RefList *list2,
+ double *scalep, int u);
+extern double stat_rdiff_intensity(RefList *list1, RefList *list2,
+ double *scalep, int u);
+
+extern double stat_pearson_i(RefList *list1, RefList *list2);
+extern double stat_pearson_f_zero(RefList *list1, RefList *list2);
+extern double stat_pearson_f_ignore(RefList *list1, RefList *list2);
+
+
+#endif /* STATISTICS_H */