diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2009-12-14 01:38:05 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2009-12-14 01:38:05 +0100 |
commit | 3b7ef2288f60bc5c355ad9aeaa127431ec3aee7b (patch) | |
tree | 5e028b11cf337290942b3cf6ecc599854de36747 /lib/pure/math.nim | |
parent | 911c1cb301a8483e463772b785b0aee79cf2a68c (diff) | |
download | Nim-3b7ef2288f60bc5c355ad9aeaa127431ec3aee7b.tar.gz |
floating point checks
Diffstat (limited to 'lib/pure/math.nim')
-rwxr-xr-x | lib/pure/math.nim | 2 |
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) |