diff options
Diffstat (limited to 'src/post-refinement.h')
-rw-r--r-- | src/post-refinement.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/post-refinement.h b/src/post-refinement.h new file mode 100644 index 00000000..1ef7a1fd --- /dev/null +++ b/src/post-refinement.h @@ -0,0 +1,50 @@ +/* + * post-refinement.h + * + * Post refinement + * + * (c) 2006-2010 Thomas White <taw@physics.org> + * + * Part of CrystFEL - crystallography with a FEL + * + */ + +#ifndef POST_REFINEMENT_H +#define POST_REFINEMENT_H + + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + + +#include <stdio.h> + +#include "image.h" + + +/* Refineable parameters */ +enum { + REF_SCALE, + REF_DIV, + NUM_PARAMS +}; + + +/* Return the gradient of parameter 'k' given the current status of 'image'. */ +double gradient(struct image *image, int k, struct cpeak spot, + double I_partial); + +/* Apply the given shift to the 'k'th parameter of 'image'. */ +void apply_shift(struct image *image, int k, double shift); + + +double mean_partial_dev(struct image *image, struct cpeak *spots, int n, + const char *sym, double *i_full, FILE *graph); + + +double pr_iterate(struct image *image, double *i_full, const char *sym, + struct cpeak **pspots, int *n); + + +#endif /* POST_REFINEMENT_H */ |