aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-11-20 22:42:57 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:06 +0100
commita4305d698c45fb68cd8e9ce2727b4cfdbda90f9e (patch)
treef4d763ba7fc8d2632a77b7b3e26fc065e90755a6 /src/post-refinement.h
parented5e49e996cd4ee9d1118e19a27ee1ac7cc67c41 (diff)
Move post refinement stuff to a new file
Diffstat (limited to 'src/post-refinement.h')
-rw-r--r--src/post-refinement.h50
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 */