/* * statistics.c * * Structure-factor statistics * * (c) 2006-2010 Thomas White * * Part of CrystFEL - crystallography with a FEL * */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "statistics.h" #include "utils.h" double stat_scale_intensity(const double *ref1, const unsigned int *c1, const double *ref2, const unsigned int *c2) { double top = 0.0; double bot = 0.0; int i; /* Start from i=1 -> skip central beam */ for ( i=1; i skip central beam */ for ( i=1; i