SourceForge has been redesigned. Learn more.
Close

Diff of /src/modules/bugs/functions/SD.cc [806c99] .. [7fa5e8]  Maximize  Restore

Switch to side-by-side view

--- a/src/modules/bugs/functions/SD.cc
+++ b/src/modules/bugs/functions/SD.cc
@@ -29,7 +29,7 @@
 	    for (i = 0; i < lengths[0]; i++) {
 		var += (args[0][i] - mean) * (args[0][i] - mean);
 	    }
-	    svalue = sqrt (var / lengths[0]);
+	    svalue = sqrt (var / (lengths[0] - 1));
 	}
 	*x = svalue;
     }