From c48d6819dfadba232b077eca794e60de20bc387c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 12 Jul 2010 10:07:01 +0200 Subject: Remove unnecessary fabs() --- src/statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3