Module: Distribution::LogNormal::GSL_

Defined in:
lib/distribution/lognormal/gsl.rb

Class Method Summary collapse

Class Method Details

.cdf(x, u, s) ⇒ Object



13
14
15
# File 'lib/distribution/lognormal/gsl.rb', line 13

def cdf(x,u,s)
  GSL::Cdf::lognormal_P(x.to_f, u.to_f, s.to_f)
end

.p_value(pr, u, s) ⇒ Object



9
10
11
# File 'lib/distribution/lognormal/gsl.rb', line 9

def p_value(pr,u,s)
  GSL::Cdf::lognormal_Pinv(pr.to_f, u.to_f, s.to_f)
end

.pdf(x, u, s) ⇒ Object



5
6
7
# File 'lib/distribution/lognormal/gsl.rb', line 5

def pdf(x,u,s)
  GSL::Ran::lognormal_pdf(x.to_f, u.to_f, s.to_f)
end