Sha256: 706e1e2f94c1533b2e4720469580acb27fc607cba670391ac3f029c69ce99478

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

module Distribution
  module Binomial
    module GSL_
      class << self
        def pdf(k,n,prob)
          GSL::Ran.binomial_pdf(k,prob,n)
        end
        def cdf(k,n,prob)
          GSL::Cdf.binomial_P(k,prob,n)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
distribution-0.7.2 lib/distribution/binomial/gsl.rb
distribution-0.7.1 lib/distribution/binomial/gsl.rb
distribution-0.7.0 lib/distribution/binomial/gsl.rb
distribution-0.6.0 lib/distribution/binomial/gsl.rb
distribution-0.5.0 lib/distribution/binomial/gsl.rb
distribution-0.4.0 lib/distribution/binomial/gsl.rb
distribution-0.3.0 lib/distribution/binomial/gsl.rb