Sha256: 898d6c6592f7fdf0e59f2b3484c876862588d2f3dbf730ae0b5587c2ece1a4f6
Contents?: true
Size: 639 Bytes
Versions: 4
Compression:
Stored size: 639 Bytes
Contents
module Distribution module Beta module GSL_ class << self def pdf(x,a,b) GSL::Ran::beta_pdf(x.to_f, a.to_f, b.to_f) end # Return the P-value of the corresponding integral with # k degrees of freedom def p_value(pr,a,b) GSL::Cdf::beta_Pinv(pr.to_f, a.to_f, b.to_f) end # Beta cumulative distribution function (cdf). # # Returns the integral of Beta distribution # with parameters +a+ and +b+ over [0, x] # def cdf(x,a,b) GSL::Cdf::beta_P(x.to_f, a.to_f, b.to_f) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems