Binomial is a ruby gem for quickly calculating probabilities that are modeled by the Binomial Theorem.
The master branch of this repo may be rather buggy at times. For a stable version, use gem install binomial or download a tagged version.
require'binomial'calc=Binomial::Calculator.newtrials: 10,probability: 0.2,target: 3# Returns the probability of 3 successes occuring during 10 trials where the # probability of a success is 0.2calc.calculateCheck the Issue Tracker for an idea of what I think needs doing. Feel free to add your own improvements! 😄