From a6f8b0591c74be470db4faddb6dad313178d66f7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 11 Mar 2014 17:12:41 +0100 Subject: ambigator: Show mean g as well --- src/ambigator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ambigator.c') 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); } -- cgit v1.2.3