Lines Matching defs:statistics
2 # Addition to the statistics package
8 package require math::statistics 0.4
10 # ::math::statistics --
14 namespace eval ::math::statistics {
53 proc ::math::statistics::tstat {n {alpha 0.05}} {
70 while {abs([::math::statistics::cdf-students-t $n $t] - $ptarg) > $epsilon} {
71 set pstar [::math::statistics::cdf-students-t $n $t]
72 set pl [::math::statistics::cdf-students-t $n [expr {$t - $deltat}]]
73 set ph [::math::statistics::cdf-students-t $n [expr {$t + $deltat}]]
79 return -code error "::math::statistics::tstat: Did not converge after $niter iterations"
109 proc ::math::statistics::mv-wls {data} {
128 return -code error "::math::statistics::mv-wls: Weight \"$wt\" is not a number"
137 return -code error "::math::statistics::mv-wls: Too few degrees of freedom: $k variables but only $n points"
150 return -code error "::math::statistics::mv-wls: Point \"$pt\" has wrong number of values (expected $k)"
256 proc ::math::statistics::mv-ols {data} {