Module: Distribution::LogNormal::GSL_

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

Class Method Summary collapse

Class Method Details

.cdf(x, u, s) ⇒ Object



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

def cdf(x, u, s)
  GSL::Cdf.lognormal_P(x.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

.quantile(pr, u, s) ⇒ Object Also known as: p_value



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

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