Well, I work in a Six Sigma department so...! Anyway, I agree that your proposal could be interesting...what do you think of the current implementations in Pharo?
#median, for example, doesn't seem to be used anywhere except as an "approved" method name in MethodFinder>>initialize... Take care, Rob 2009/3/1 Michael van der Gulik <[email protected]> > > > On Mon, Mar 2, 2009 at 1:34 PM, Rob Rothwell <[email protected]>wrote: > >> I notice that the current median is: >> >> median >> "Return the middle element, or as close as we can get." >> >> ^ self at: self size + 1 // 2 >> >> Any reason not to make that accurate and return the average of the middle >> two values for collections containing an even number of items? >> >> Or...better yet...should statistics functions be removed and placed into >> another package with other useful items like mode, range, standardDeviation, >> etc...? >> > > > Hmm... > > | μ σ | > s := StatisticalAnalysis on: myCollection. > μ := s mean. > σ := s standardDeviation. > range := μ ± σ. > > This might be interesting. > > Gulik > > -- > http://gulik.pbwiki.com/ > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
