mgrigajtis/easystats — pull request #6 by swelltrain (2012-09-20 21:41:52+00:00)
Title: Probability Distribution

Hello,

This is my first pull request and my first time contributing to a ruby project.

I noticed the easystats gem mentioned on afreshcup.com and thought "Hey, maybe I could contribute to that." So I added an Array#probability_distribution method that returns a hash with the probability distribution for each unique element of the array. I also updated the tests to include it where appropriate.

Thanks! -stephen