diff stat.c @ 144:be87c8e78266

Code cleanup
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Wed, 22 Jan 2014 14:45:24 +0100
parents e04123ab79ef
children
line wrap: on
line diff
--- a/stat.c	Wed Jan 22 14:45:23 2014 +0100
+++ b/stat.c	Wed Jan 22 14:45:24 2014 +0100
@@ -13,12 +13,9 @@
 void stat_accumulate(struct stat *s, double value)
 {
 	s->samples += 1;
-	
 	if (s->samples > 1)
 		s->slope = (s->slope * (s->samples - 2) + 6 * (value - s->mean) / s->samples) / (s->samples + 1);
-					
 	s->mean = ((s->samples - 1) * s->mean + value) / s->samples;
-	
 	s->previous = value;
 }