Does anyone know where I can find methods for statistics, like standard deviation?
Regression would be nice also.
Sincerely,
Joe.
Find with "dhb numerical method" or something on google.
Sent from my iPhone
On Nov 15, 2012, at 5:12, Joseph J Alotta joseph.alotta@gmail.com wrote:
Does anyone know where I can find methods for statistics, like standard deviation?
Regression would be nice also.
Sincerely,
Joe.
The package is based on Didier Besset's book "Object-Oriented Implementation of Numerical Methods". The code is available as a Monticello package on squeaksource (http://www.squeaksource.com/DHBNumerical).
HTH Doug
On Nov 14, 2012, at 13:54 , Sungjin Chun wrote:
Find with "dhb numerical method" or something on google.
Sent from my iPhone
On Nov 15, 2012, at 5:12, Joseph J Alotta joseph.alotta@gmail.com wrote:
Does anyone know where I can find methods for statistics, like standard deviation?
Regression would be nice also.
Sincerely,
Joe.
You could check https://github.com/SergeStinckwich/SciSmalltalk too which should include dhb numerics. If that does not fit, maybe think of capitalizing there...
Nicolas
2012/11/14 Sungjin Chun chunsj@gmail.com:
Find with "dhb numerical method" or something on google.
Sent from my iPhone
On Nov 15, 2012, at 5:12, Joseph J Alotta joseph.alotta@gmail.com wrote:
Does anyone know where I can find methods for statistics, like standard deviation?
Regression would be nice also.
Sincerely,
Joe.
Why don't you use the SqueakSource repository for DHB Numerical Methods?
Hernán
El 14/11/2012 19:11, Nicolas Cellier escribió:
You could check https://github.com/SergeStinckwich/SciSmalltalk too which should include dhb numerics. If that does not fit, maybe think of capitalizing there...
Nicolas
2012/11/14 Sungjin Chun chunsj@gmail.com:
Find with "dhb numerical method" or something on google.
Sent from my iPhone
On Nov 15, 2012, at 5:12, Joseph J Alotta joseph.alotta@gmail.com wrote:
Does anyone know where I can find methods for statistics, like standard deviation?
Regression would be nice also.
Sincerely,
Joe.
I add these two methods to the math functions protocol of the Collections class:
variance
^(self - self average) squared average
and
standardDeviation
^self variance sqrt.
Be careful with large collections integers as these methods will invoke fraction arithmetic which is rather slow. In most cases it would be better to force floating point.
-- View this message in context: http://forum.world.st/statistics-standard-deviation-tp4655159p4658151.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
2012/12/5 glenpaling slp5591@me.com:
I add these two methods to the math functions protocol of the Collections class:
variance
^(self - self average) squared average
and
standardDeviation
^self variance sqrt.
Be careful with large collections integers as these methods will invoke fraction arithmetic which is rather slow. In most cases it would be better to force floating point.
No, IMO the library shouldn't force anything but let the decision to the sender. Such information has a place in documentation.
Nicolas
-- View this message in context: http://forum.world.st/statistics-standard-deviation-tp4655159p4658151.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
On 5 December 2012 17:38, Nicolas Cellier nicolas.cellier.aka.nice@gmail.com wrote:
2012/12/5 glenpaling slp5591@me.com:
I add these two methods to the math functions protocol of the Collections class:
variance
^(self - self average) squared average
and
standardDeviation
^self variance sqrt.
Be careful with large collections integers as these methods will invoke fraction arithmetic which is rather slow. In most cases it would be better to force floating point.
No, IMO the library shouldn't force anything but let the decision to the sender. Such information has a place in documentation.
Especially when forcing floats is as easy as (myCollection collect: #asFloat) standardDeviation.
frank
Nicolas
-- View this message in context: http://forum.world.st/statistics-standard-deviation-tp4655159p4658151.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
Yes, that was my intention. The methods are generic.
Are these worth adding to the image? I can submit them to the inbox, with tests of course.
-- View this message in context: http://forum.world.st/statistics-standard-deviation-tp4655159p4658187.html Sent from the Squeak - Dev mailing list archive at Nabble.com.
squeak-dev@lists.squeakfoundation.org