Statistiks
Statistiks is a suite of statistical tools for Ruby language
Installation
Add this line to your application's Gemfile:
gem 'statistiks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install statistiks
Usage
Array methods
Sum
[1,2,3,4,5].sum
=> 15.0
Mean
[1,2,3,4,5].mean
=> 3.0
Variance
[1,2,3,4,5].variance
=> 2.5
Standard deviation
[1,2,3,4,5].sd
=> 1.58114
Median
[1,2,3,4,5,6,7,8,9,10].median
=> 3.0
Quartiles
[1,2,3,4,5,6,7,8,9,10].quartiles
=> [3.0, 5.0, 8.0]
Contributing
- Fork it ( https://github.com/jdanielnd/statistiks/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request