<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You could try the following, assuming your data is in a collection called "data".<br><br>standardDeviation<span class="Apple-tab-span" style="white-space: pre; ">        </span><br><span class="Apple-tab-span" style="white-space: pre; ">        </span>| accumulator |<span class="Apple-tab-span" style="white-space: pre; ">        </span><br><span class="Apple-tab-span" style="white-space: pre; ">        </span>accumulator := DhbStatisticalMoments new.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>data do: [:each | accumulator accumulate: each]].<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>^accumulator standardDeviation<br><br><br>Also, see the tests in DhbNumericalMethodsTestCase.<br><br>DhbNumericalMethodsTestCase&gt;&gt;testStatisticalMoments<br>DhbNumericalMethodsTestCase&gt;&gt;testStatisticalMomentsFast<br><br>HTH&nbsp;<div><br></div><div><br><div><div>On Nov 15, 2012, at 16:34 , Sungjin Chun wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">You can consult this book "Object-Oriented Implementation of Numerical Methods" for the code, especially Dhb... classes.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 9:30 AM, Joseph J Alotta <span dir="ltr">&lt;<a href="mailto:joseph.alotta@gmail.com" target="_blank">joseph.alotta@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I looked at the repositories that you mention and there is nothing there that I can work with. &nbsp;It is this very vast<br>

collection of code that has no documentation and no description.<br>
<br>
There seems to be methods for standard deviation but it involves subtracting moments from a larger object that calculated it somehow and is not to be found. &nbsp;It seems that one needs a vast understanding of the inner workings of smalltalk to use these classes. &nbsp;I was under the impression that knowledge of the hacky things is supposed to be hidden from a casual user or at least this is the design principle that is not followed.<br>

<br>
It is funny to me that there is not a simple answer to a simple question like this and I am left to coding standard deviation for myself.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
&gt; On Nov 15, 2012, at 5:12, Joseph J Alotta &lt;<a href="mailto:joseph.alotta@gmail.com">joseph.alotta@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Does anyone know where I can find methods for statistics, like standard deviation?<br>
&gt;&gt;<br>
&gt;&gt; Regression would be nice also.<br>
&gt;&gt;<br>
&gt;&gt; Sincerely,<br>
&gt;&gt;<br>
&gt;&gt; Joe.<br>
<br>
</div></div></blockquote></div><br></div>
<br></blockquote></div><br></div></body></html>