rstats

Get Version

0.0.3

What

Statistics Ruby Gem. This gem adds the following statistical methods to the Array class:

Installing

sudo gem install rstats

Demonstration of usage
>> require 'rstats'
=> true
>> a = [1, 3, 4, 6, 9, 19]
=> [1, 3, 4, 6, 9, 19]
>> a.mean
=> 7.0
>> a.median
=> 5.0
>> a.mode
=> [6, 1, 19, 3, 9, 4]
>> a.variance
=> 42.0
>> a.standard_deviation
=> 6.48074069840786
>> a.skewness
=> 1.57389416961334

Source

git clone git://github.com/jimmyebaker/rstats.git

Build and test instructions

cd rstats
rake test
rake install_gem

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to jimmyebaker@gmail.com

Jimmy Baker, 7th September 2008
Theme extended from Paul Battley