aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-03-11 17:12:41 +0100
committerThomas White <taw@physics.org>2014-03-11 17:12:41 +0100
commita6f8b0591c74be470db4faddb6dad313178d66f7 (patch)
tree9514dfec10dd11a92f2c52965e6312b615944daf
parent890e89537f6bbd1f82e45828c71abf91ec020151 (diff)
ambigator: Show mean g as well
-rw-r--r--src/ambigator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index ba154cd5..7e1726fd 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -537,6 +537,7 @@ static void detwin(struct cc_list *ccs, int n_crystals, int *assignments,
int i;
int nch = 0;
float mf = 0.0;
+ float mg = 0.0;
int nmf = 0;
int ndud = 0;
@@ -589,6 +590,7 @@ static void detwin(struct cc_list *ccs, int n_crystals, int *assignments,
if ( fh != NULL ) fprintf(fh, "%5.3f %5.3f\n", f, g);
mf += f;
+ mg += g;
nmf++;
if ( f < g ) {
@@ -602,7 +604,8 @@ static void detwin(struct cc_list *ccs, int n_crystals, int *assignments,
STATUS("Warning: %i crystals had no correlation\n", ndud);
}
- STATUS("Mean f = %f, changed %i assignments this time.\n", mf/nmf, nch);
+ STATUS("Mean f,g = %10f,%10f. Changed %i assignments this time.\n",
+ mf/nmf, mg/nmf, nch);
}