jonleighton / poisson

A Ruby library for using the Poission distribution

This URL has Read+Write access

jonleighton (author)
Sat Sep 06 11:13:17 -0700 2008
commit  747d5208f45a8a9e08c360e602592602db9fd410
tree    3d9e5b0aab1711e012668d9c0be91970db830781
parent  116a73287f542df760794ca5f8a181ecb4775c7f
poisson / README.rdoc
100644 25 lines (14 sloc) 0.684 kb

Poisson Distribution Ruby Class

Poisson is a Ruby class for the Poisson Distribution. Here is a very simple use example:

  require 'poisson'
  poisson = Poisson.new(6)
  poisson.probability { |x| x == 4 } # => 0.133...

Please see the API documentation for more detail.

Install

You know the routine:

  gem install poisson

Author

Poisson was written by Jonathan Leighton <j at jonathanleighton dot com> of jonathanleighton.com/.

Licence

Poisson is licensed under the GPL. See the LICENCE file. You can find the code at github.com/jonleighton/poisson/.