Add test showing calculation of standard deviation

This commit is contained in:
Michael Daines committed 2013-09-14 17:48:19 -04:00
1 parent 82d8253c19
commit c427bf6a94
1 file changed
+4
+4
View File
@@ -370,6 +370,10 @@ null
[4,9]
[2,3]
(add / length) as $m | map((. - $m) as $d | $d * $d) | add / length | sqrt
[2,4,4,4,5,5,7,9]
2
def f(x): x | x; f([.], . + [42])
[1,2,3]
[[[1,2,3]]]