Cumulative standard deviation: Difference between revisions

m
→‎{{header|Scilab}}: built-in function
(Add Scilab section)
m (→‎{{header|Scilab}}: built-in function)
Line 2,563:
 
=={{header|Scilab}}==
Scilab has the built-in function '''stdev''' to compute the standard deviation of a sample so it is straightforward to have the standard deviation of a sample with a correction of the bias.
<lang>T=[2,4,4,4,5,5,7,9];
stdev(T)*sqrt((length(T)-1)/length(T)) </lang>
T=[2,4,4,4,5,5,7,9];
stdev(T)*sqrt((length(T)-1)/length(T))
</lang>
{{out}}
<pre>-->T=[2,4,4,4,5,5,7,9];
<pre>
-->T=[2,4,4,4,5,5,7,9];
-->stdev(T)*sqrt((length(T)-1)/length(T))
ans = 2. </pre>
</pre>
 
 
 
=={{header|Smalltalk}}==
1,392

edits