Sha256: 282465292766820f8cebc4ae23431bffd6aeec32b3570ef85e6d5237acbda643

Contents?: true

Size: 1005 Bytes

Versions: 5

Compression:

Stored size: 1005 Bytes

Contents

require 'distribution/gamma/ruby'
require 'distribution/gamma/gsl'
# no statistics2 functions for gamma.
require 'distribution/gamma/java'

module Distribution
  # From Wikipedia:
  #    The gamma distribution is a two-parameter family of 
  #    continuous probability distributions. It has a scale parameter a
  #    and a shape parameter b.
  # 
  # Calculate pdf, cdf and inverse cdf for Gamma Distribution.
  #
  module Gamma
    extend Distributable
    SHORTHAND='gamma'
    create_distribution_methods

    ##
    # :singleton-method: pdf(x,a,b)
    # Returns PDF of of Gamma distribution with +a+ as scale
    # parameter and +b+ as shape parameter


    ##
    # :singleton-method: cdf(x,a,b)
    # Returns the integral of Gamma distribution with +a+ as scale
    # parameter and +b+ as shape parameter

    ##
    # :singleton-method: p_value(qn,a,b)
    # Return the upper limit for the integral of a 
    # gamma distribution which returns +qn+ 
    # with scale +a+ and shape +b+

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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