summary refs log tree commit diff stats
path: root/lib/pure/math.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2009-12-14 01:38:05 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2009-12-14 01:38:05 +0100
commit3b7ef2288f60bc5c355ad9aeaa127431ec3aee7b (patch)
tree5e028b11cf337290942b3cf6ecc599854de36747 /lib/pure/math.nim
parent911c1cb301a8483e463772b785b0aee79cf2a68c (diff)
downloadNim-3b7ef2288f60bc5c355ad9aeaa127431ec3aee7b.tar.gz
floating point checks
Diffstat (limited to 'lib/pure/math.nim')
-rwxr-xr-xlib/pure/math.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index bca45894c..50226f0f4 100755
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -101,7 +101,7 @@ proc mean*(x: openarray[float]): float {.noSideEffect.} =
   result = sum(x) / toFloat(len(x))
 
 proc variance*(x: openarray[float]): float {.noSideEffect.} = 
-  ## computes the mean of the elements in `x`. 
+  ## computes the variance of the elements in `x`. 
   ## If `x` is empty, NaN is returned.
   result = 0.0
   var m = mean(x)