Sha256: f846cd3f94c7ae8021c14bc58f6986f9313e706e4c2cfc0462cee84962a247a0

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

require 'distribution/poisson/ruby'
require 'distribution/poisson/gsl'
require 'distribution/poisson/java'

module Distribution
  # From Wikipedia
  #  In probability theory and statistics, the Poisson distribution is
  #  a discrete probability distribution that expresses the probability of
  #  a number of events occurring in a fixed period of time if these
  #  events occur with a known average rate and independently of the time
  #  since the last event.
  module Poisson
    SHORTHAND = 'pois'
    extend Distributable
    create_distribution_methods

    ##
    # :singleton-method: pdf(k , l)
    # PDF for Poisson distribution,
    # [+k+] is the number of occurrences of an event
    # [+l+] is a positive real number, equal to the expected number of occurrences that occur during the given interval.

    ##
    # :singleton-method: cdf(k , l)
    # CDF for Poisson distribution
    # [+k+] is the number of occurrences of an event
    # [+l+] is a positive real number, equal to the expected number of occurrences that occur during the given interval.

    # TODO: Not implemented yet
    # :singleton-method: p_value(pr , l)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
distribution-0.8.0 lib/distribution/poisson.rb