aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-17 18:05:16 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:29 +0100
commitd556a9c9df9f888835bc452e997971ca280ea234 (patch)
tree61b23764065afb0667632eb3e5f1cae74433ac03 /src/post-refinement.c
parent5d2605f47cee06d5367dc7d221816c52d8a5cda8 (diff)
Add some revealing statistics
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index c092e2c1..f8b66593 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -367,11 +367,15 @@ void pr_refine(struct image *image, const RefList *full, const char *sym)
{
double max_shift, dev;
int i;
- const int verbose = 0;
+ const int verbose = 1;
+ int nexp, nfound, nnotfound;
+
+ update_partialities(image, sym, NULL, &nexp, &nfound, &nnotfound);
if ( verbose ) {
dev = mean_partial_dev(image, full, sym);
- STATUS("PR starting dev = %5.2f\n", dev);
+ STATUS("PR starting dev = %5.2f (%i out of %i found)\n",
+ dev, nfound, nexp);
}
i = 0;
@@ -381,12 +385,14 @@ void pr_refine(struct image *image, const RefList *full, const char *sym)
max_shift = pr_iterate(image, full, sym);
- update_partialities(image, sym, NULL, NULL, NULL, NULL);
+ update_partialities(image, sym, NULL,
+ &nexp, &nfound, &nnotfound);
if ( verbose ) {
dev = mean_partial_dev(image, full, sym);
STATUS("PR Iteration %2i: max shift = %5.2f"
- " dev = %5.2f\n", i+1, max_shift, dev);
+ " dev = %5.2f (%i out of %i found)\n",
+ i+1, max_shift, dev, nfound, nexp);
}
i++;