Module: Distribution::Weibull::GSL_

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

Class Method Summary collapse

Class Method Details

.cdf(x, k, lam) ⇒ Object


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

def cdf(x, k, lam)
  GSL::Cdf.weibull_P(x, lam, k)
end

.pdf(x, k, lam) ⇒ Object


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

def pdf(x, k, lam)
  GSL::Ran.weibull_pdf(x, lam, k)
end

.quantile(y, k, lam) ⇒ Object Also known as: p_value


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

def quantile(y, k, lam)
  GSL::Cdf.weibull_Pinv(y, lam, k)
end