Anonymous user
Cumulative standard deviation: Difference between revisions
m
→only show standard deviation: changed a comment.
ReeceGoding (talk | contribs) (→{{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 /*
end /*j*/
say 'standard deviation: ' sqrt($$/n - ($/n)**2) /*calculate&display the std, deviation.*/
|