diff options
author | Thomas White <taw@physics.org> | 2020-08-01 15:13:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-01 15:19:26 +0200 |
commit | 189da15810deabd739d7c11c6e95fea55739fe60 (patch) | |
tree | e86e43fcbbf8278b792a74daf684cde3bd6e2bbf /src/statistics.h |
Initial import from archive
Diffstat (limited to 'src/statistics.h')
-rw-r--r-- | src/statistics.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/statistics.h b/src/statistics.h new file mode 100644 index 0000000..be49098 --- /dev/null +++ b/src/statistics.h @@ -0,0 +1,31 @@ +/* + * statistics.h + * + * Structure Factor Statistics + * + * (c) 2006 Thomas White <taw27@cam.ac.uk> + * Synth2d - two-dimensional Fourier synthesis + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifndef STATISTICS_H +#define STATISTICS_H + +#include "reflist.h" + +extern double stat_scale(ReflectionList *obs, ReflectionList *calc); +extern double stat_scale_intensity(ReflectionList *obs, ReflectionList *calc); + +extern double stat_r1(ReflectionList *a, ReflectionList *b); +extern double stat_r2(ReflectionList *a, ReflectionList *b); +#define stat_r(a, b) stat_r1((a), (b)) + +extern double stat_sigma_f(ReflectionList *reflections); +extern double stat_stddev(ReflectionList *a); +extern double stat_maxam(ReflectionList *a); + +#endif /* STATISTICS_H */ |