Sha256: 870a687599a487a26456ca13e0245e823a1ab15e1de074238929f2a2d03bf5e2

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
distribution-0.8.0 lib/distribution/hypergeometric/gsl.rb