Sha256: 76c4c12c54c15697d41dccbba68cdbbfb22af98f167fe8fb7a1abf2d289a6b4a

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 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

4 entries across 4 versions & 1 rubygems

Version Path
distribution-0.7.3 lib/distribution/poisson.rb
distribution-0.7.2 lib/distribution/poisson.rb
distribution-0.7.1 lib/distribution/poisson.rb
distribution-0.7.0 lib/distribution/poisson.rb