|
4 years ago | |
---|---|---|
certs | 4 years ago | |
lib | 4 years ago | |
test | 4 years ago | |
.gitignore | 4 years ago | |
CHANGELOG | 4 years ago | |
Gemfile | 4 years ago | |
Gemfile.lock | 4 years ago | |
README.md | 4 years ago | |
Rakefile | 4 years ago | |
binomial_distribution.gemspec | 4 years ago | |
version | 4 years ago |
# A ruby implementation of the Binomial Distribution
gem install binomial_distribution
or in the Gemfile
gem 'binomial_distribution'
## Usage in Ruby
require 'binomial_distribution'
Math.binomial_distribution(tries: 1, probability: 0.4, success: 1) # => 0.4
rake test
Find a bug ? Want a new feature ? Create a clear pull request and we'll see :)