Module: Distribution::Weibull::GSL_

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

Class Method Summary collapse

Class Method Details

.cdf(x, k, lam) ⇒ Object



11
12
13
# File 'lib/distribution/weibull/gsl.rb', line 11

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

.p_value(y, k, lam) ⇒ Object



15
16
17
# File 'lib/distribution/weibull/gsl.rb', line 15

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

.pdf(x, k, lam) ⇒ Object



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

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