Cumulative standard deviation: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) (Add Scilab section) |
PatGarrett (talk | contribs) m (→{{header|Scilab}}: built-in function) |
||
Line 2,563: | Line 2,563: | ||
=={{header|Scilab}}== |
=={{header|Scilab}}== |
||
Scilab has the '''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. |
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> |
<lang>T=[2,4,4,4,5,5,7,9]; |
||
⚫ | |||
⚫ | |||
⚫ | |||
</lang> |
|||
{{out}} |
{{out}} |
||
⚫ | |||
<pre> |
|||
-->T=[2,4,4,4,5,5,7,9]; |
|||
-->stdev(T)*sqrt((length(T)-1)/length(T)) |
-->stdev(T)*sqrt((length(T)-1)/length(T)) |
||
ans = 2. |
ans = 2.</pre> |
||
</pre> |
|||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |