Module: Distribution::T::Statistics2_
- Defined in:
- lib/distribution/t/statistics2.rb
Class Method Summary collapse
-
.p_value(pr, k) ⇒ Object
Return the P-value of the corresponding integral with k degrees of freedom.
Instance Method Summary collapse
-
#cdf(x, k) ⇒ Object
T cumulative distribution function (cdf).
Class Method Details
.p_value(pr, k) ⇒ Object
Return the P-value of the corresponding integral with k degrees of freedom
8 9 10 |
# File 'lib/distribution/t/statistics2.rb', line 8 def p_value(pr,k) Statistics2.ptdist(k, pr) end |
Instance Method Details
#cdf(x, k) ⇒ Object
T cumulative distribution function (cdf).
Returns the integral of t-distribution with n degrees of freedom over (-Infty, x].
20 21 22 |
# File 'lib/distribution/t/statistics2.rb', line 20 def cdf(x,k) Statistics2.tdist(k,x) end |