diff options
author | Thomas White <taw@physics.org> | 2015-02-19 16:42:20 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-02-19 16:42:50 +0100 |
commit | 1875d6b5ed546780a345bb4f15cf5ed7189f7b7f (patch) | |
tree | c5466f18df0c402bad46a9f2ca3bf9600b9a6726 /src/geoptimiser.c | |
parent | 211076008e20f0ff11b54fa52eae3b34147be94f (diff) |
geoptimiser: Fix error message
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r-- | src/geoptimiser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c index 3cfde92b..eda4e615 100644 --- a/src/geoptimiser.c +++ b/src/geoptimiser.c @@ -1057,13 +1057,14 @@ static double compute_error(struct rg_collection *connected, } } - if ( num_connected_error>0 ) { + if ( num_connected_error > 0 ) { + connected_error /= (double)num_connected_error; connected_error = sqrt(connected_error); STATUS("Error for connected group %s: %d pixels with " "more than %d peaks: <delta^2> = %0.4f pixels.\n", - conn_data[di].name, + conn_data[di].name, num_connected_error, conn_data[di].num_peaks_per_pixel, connected_error); } |