aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-01-24 18:04:38 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:11 +0100
commit384bf68d6946a62ebc33f632b924869fcb4e2e43 (patch)
treefea68b782a5091c41244898ed02326d389632679 /src/hrs-scaling.c
parent0fbd26c1b9f998fba172d14487e2b26d10d13b81 (diff)
Get normalisation right
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 052d91c5..86a5ffab 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -331,7 +331,7 @@ static void normalise_osfs(struct image *images, int n)
mean = tot / (double)n;
for ( m=0; m<n; m++ ) {
- images[m].osf /= mean;
+ images[m].osf -= (mean-1.0);
}
}