Sha256: 85671ecaa3bfe308c33387b1b905d35bbdff122c58b67d9f422dc7769d38da78

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

module Distribution
  module Hypergeometric
    module GSL_
      class << self
        def pdf(k, m, n, total)  # :nodoc:
          GSL::Ran::hypergeometric_pdf(k, m, total-m, n)
        end
        # The GSL::Cdf function for hypergeometric 
        #   
        def cdf(k, m, n, total) # :nodoc:
          GSL::Cdf::hypergeometric_P(k, m, total-m, n)
        end
        
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribution-0.7.3 lib/distribution/hypergeometric/gsl.rb
distribution-0.7.2 lib/distribution/hypergeometric/gsl.rb