Go to file
Arthur Poulet 8ba9094da4
update shard to v0.1.2
2016-06-28 20:04:27 +02:00
spec fix name 2016-06-28 17:03:05 +02:00
src fix name 2016-06-28 17:03:05 +02:00
.gitignore Initialize the repository 2016-06-27 15:39:37 +02:00
.travis.yml Initialize the repository 2016-06-27 15:39:37 +02:00
CHANGELOG.md fix name 2016-06-28 17:03:05 +02:00
LICENSE Initialize the repository 2016-06-27 15:39:37 +02:00
README.md fix name 2016-06-28 17:03:05 +02:00
shard.yml update shard to v0.1.2 2016-06-28 20:04:27 +02:00

README.md

crystal_proba

Installation

Add this to your application's shard.yml:

dependencies:
  CrystalProba:
    github: Nephos/crystal_proba

Usage

require "crystal_proba"

You should read the specs to understand how it works.

Math.binomial_distribution(tries: 1, probability: 0.4, success: 1) # => 0.4
NormaleDistribution::between      standard_deviation: 15, esperance: 100, a: 85, b: 115 # => 0.6826894921370859
NormaleDistribution::less_than    standard_deviation: 15, esperance: 100, a: 85 # => 0.15865525393145707
NormaleDistribution::greater_than standard_deviation: 15, esperance: 100, a: 115 # => 0.15865525393145707

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/Nephos/crystal_proba/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Nephos Arthur Poulet - creator, maintainer