aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-12 10:07:01 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:53 +0100
commitc48d6819dfadba232b077eca794e60de20bc387c (patch)
tree4aad8934db26c05cca6d628a02b5d0fc1d85057a /src
parent6264ff6e0ac13fcc22afcb4ce9f98a920444a92c (diff)
Remove unnecessary fabs()
Diffstat (limited to 'src')
-rw-r--r--src/statistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statistics.c b/src/statistics.c
index f3fb21c0..889ade51 100644
--- a/src/statistics.c
+++ b/src/statistics.c
@@ -109,7 +109,7 @@ static double internal_r2(const double *ref1, const unsigned int *c1,
i1 = ref1[i] / (scale*(double)c1[i]);
i2 = ref2[i] / (double)c2[i];
- top += pow(fabs(i1 - i2), 2.0);
+ top += pow(i1 - i2, 2.0);
bot += pow(i1, 2.0);
} /* else reflection not measured so don't worry about it */