Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A ruby gem for calculating binomial probabilities
Ruby
branch: master

This branch is 14 commits behind loddy1234:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
binomial.gemspec

README.md

Binomial

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.

Usage

require 'binomial'

calc = Binomial::Calculator.new trials: 10, probability: 0.2, target: 3

# Returns the probability of 3 successes occuring during 10 trials where the 
# probability of a success is 0.2
calc.calculate 

Todo

Check the Issue Tracker for an idea of what I think needs doing. Feel free to add your own improvements! :smile:

Something went wrong with that request. Please try again.