Cumulative standard deviation: Difference between revisions
m
→{{header|Wren}}: Minor tidy
m (→{{header|Wren}}: Minor tidy) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 904:
No attempt to handle different types -- standard deviation is intrinsically a real number.
<syntaxhighlight lang="cpp">
#include <
#include <cmath>
#include <vector>
Line 1,361:
v[] = [ 2 4 4 4 5 5 7 9 ]
for v in v[]
print v & " " & r
.
Line 4,442:
{{libheader|Wren-fmt}}
{{libheader|Wren-math}}
<syntaxhighlight lang="
import "./math" for Nums
var cumStdDev = Fiber.new { |a|
Line 4,457:
var sd = cumStdDev.call(a)
if (cumStdDev.isDone) return
}</syntaxhighlight>
|