Add test showing calculation of standard deviation
This commit is contained in:
1 parent
82d8253c19
commit
c427bf6a94
1 file changed
+4
@@ -370,6 +370,10 @@ null
|
|||||||
[4,9]
|
[4,9]
|
||||||
[2,3]
|
[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])
|
def f(x): x | x; f([.], . + [42])
|
||||||
[1,2,3]
|
[1,2,3]
|
||||||
[[[1,2,3]]]
|
[[[1,2,3]]]
|
||||||
|
|||||||
Reference in new issue
Block a user