Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
import "/fmt" for Fmt
|
||||
import "/math" for Nums
|
||||
|
||||
var cumStdDev = Fiber.new { |a|
|
||||
for (i in 0...a.count) {
|
||||
var b = a[0..i]
|
||||
System.print("Values : %(b)")
|
||||
Fiber.yield(Nums.popStdDev(b))
|
||||
}
|
||||
}
|
||||
|
||||
var a = [2, 4, 4, 4, 5, 5, 7, 9]
|
||||
while (true) {
|
||||
var sd = cumStdDev.call(a)
|
||||
if (cumStdDev.isDone) return
|
||||
System.print("Std Dev : %(Fmt.f(10, sd, 8))\n")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue