Module: Distribution::Binomial::GSL_
- Defined in:
- lib/distribution/binomial/gsl.rb
Class Method Summary collapse
Class Method Details
.cdf(k, n, prob) ⇒ Object
9 10 11 |
# File 'lib/distribution/binomial/gsl.rb', line 9 def cdf(k, n, prob) GSL::Cdf.binomial_P(k, prob, n) end |
.pdf(k, n, prob) ⇒ Object
5 6 7 |
# File 'lib/distribution/binomial/gsl.rb', line 5 def pdf(k, n, prob) GSL::Ran.binomial_pdf(k, prob, n) end |