aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/statistics.h
blob: 8fa78ea6dc73c27bebeea774ba1c4454f465eea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 */