Go to file
Arthur POULET d1c58e474f
Improve normale distribution and update v0.1.6
- NormaleDistribution functions takes "min" and "max" named parameters
  instead of "a" "b" to be less confusing.
- Add specs for NormalDistribution.between/less_than/more_than
- update shard version to v0.1.6
- update changelog and readme
2016-07-01 01:09:21 +02:00
spec Improve normale distribution and update v0.1.6 2016-07-01 01:09:21 +02:00
src Improve normale distribution and update v0.1.6 2016-07-01 01:09:21 +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 Improve normale distribution and update v0.1.6 2016-07-01 01:09:21 +02:00
LICENSE Initialize the repository 2016-06-27 15:39:37 +02:00
README.md Improve normale distribution and update v0.1.6 2016-07-01 01:09:21 +02:00
shard.yml Improve normale distribution and update v0.1.6 2016-07-01 01:09:21 +02:00

README.md

stats

An expressive implementation of statistical distributions. Compatible with crystal v0.18

Installation

Add this to your application's shard.yml:

dependencies:
  Stats:
    github: Nephos/stats

Usage

require "stats"

You should read the specs to understand how it works.

NormaleDistribution::between standard_deviation: 15, esperance: 100, min: 85, max: 115 # => 0.6826894921370859
Math.binomial_distribution(tries: 3, probability: 0.5, success: 1) # => 0.375

Development

  • The lib is adapted to be usable with BigInt and BigFloat values

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