BinomialDistribution/README.md

38 lines
482 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# A ruby implementation of the Binomial Distribution
## Installation
```sh
gem install binomial_distribution
```
or in the ``Gemfile``
```ruby
gem 'binomial_distribution'
```
## Usage in Ruby
```ruby
require 'binomial_distribution'
Math.binomial_distribution(tries: 1, probability: 0.4, success: 1) # => 0.4
```
## Unitary tests
```sh
rake test
```
## Contributes !
Find a bug ? Want a new feature ?
Create a clear pull request and we'll see :)
- Nephos (poulet_a)