Cumulative standard deviation: Difference between revisions

m
(→‎{{header|R}}: Added what I believe to be a true stateful solution. I'm not well-informed about the terminology. Hopefully I've not accidentally made a generator.)
m (→‎only show standard deviation: changed a comment.)
Line 3,416:
/* [↓] process each number in the list*/
do j=1 for n; _=word(#,j); $ =$ + _ /*perform summation on two sets of #'s.*/
$$=$$ + _**2 /*performcalculate summationthe onstandard deviation. two sets of #'s.*/
end /*j*/
say 'standard deviation: ' sqrt($$/n - ($/n)**2) /*calculate&display the std, deviation.*/