Class: Num4TstStatistic2Lib::OutlierLib
- Inherits:
-
Object
- Object
- Num4TstStatistic2Lib::OutlierLib
- Defined in:
- lib/num4tststatistic2.rb
Instance Method Summary collapse
-
#errbar(dname, xi) ⇒ void
エラーバー出力.
-
#grubbs(xi, xk, a) ⇒ double
グラプス・スミルノフの外れ値の検定量.
-
#initialize ⇒ OutlierLib
constructor
A new instance of OutlierLib.
Constructor Details
#initialize ⇒ OutlierLib
Returns a new instance of OutlierLib.
267 268 269 270 |
# File 'lib/num4tststatistic2.rb', line 267 def initialize @outlier = Num4TstStatisticLib::OutlierLib.new @hypothTest2 = Num4HypothTestLib::GrubbsTestLib.new end |
Instance Method Details
#errbar(dname, xi) ⇒ void
エラーバー出力
298 299 300 |
# File 'lib/num4tststatistic2.rb', line 298 def (dname, xi) @outlier.(dname, xi) end |
#grubbs(xi, xk, a) ⇒ double
グラプス・スミルノフの外れ値の検定量
282 283 284 285 286 |
# File 'lib/num4tststatistic2.rb', line 282 def grubbs(xi, xk, a) n = xi.size statistic = @outlier.grubbs(xi, xk) @hypothTest2.twoSideTest(statistic, n, a) end |