Class: Num4TstStatistic2Lib::OutlierLib
- Inherits:
-
Object
- Object
- Num4TstStatistic2Lib::OutlierLib
- Defined in:
- lib/num4tststatistic2.rb
Overview
外れ値検定
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.
318 319 320 321 |
# File 'lib/num4tststatistic2.rb', line 318 def initialize @outlier = Num4TstStatisticLib::OutlierLib.new @hypothTest2 = Num4HypothTestLib::GrubbsTestLib.new end |
Instance Method Details
#errbar(dname, xi) ⇒ void
エラーバー出力
349 350 351 |
# File 'lib/num4tststatistic2.rb', line 349 def (dname, xi) @outlier.(dname, xi) end |
#grubbs(xi, xk, a) ⇒ double
グラプス・スミルノフの外れ値の検定
333 334 335 336 337 |
# File 'lib/num4tststatistic2.rb', line 333 def grubbs(xi, xk, a) n = xi.size statistic = @outlier.grubbs(xi, xk) @hypothTest2.twoSideTest(statistic, n, a) end |