From 189da15810deabd739d7c11c6e95fea55739fe60 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 1 Aug 2020 15:13:49 +0200 Subject: Initial import from archive --- src/statistics.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/statistics.h (limited to 'src/statistics.h') 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 + * Synth2d - two-dimensional Fourier synthesis + * + */ + +#ifdef HAVE_CONFIG_H +#include +#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 */ -- cgit v1.2.3