Class: Num4HypothTestLib::TwoSideTestLib
- Inherits:
-
Object
- Object
- Num4HypothTestLib::TwoSideTestLib
- Defined in:
- lib/num4hypothtst.rb
Overview
両側検定
Instance Method Summary collapse
-
#chi2DistTest(statistic, df, a) ⇒ boolean
階2乗検定.
-
#fDistTest(statistic, nf, df, a) ⇒ boolean
F検定.
-
#initialize ⇒ TwoSideTestLib
constructor
A new instance of TwoSideTestLib.
-
#normDistTest(statistic, a) ⇒ boolean
標準正規分布検定.
-
#tDistTest(statistic, df, a) ⇒ boolean
T検定.
-
#wilcoxon(statistic, n, a) ⇒ boolean
ウィルコクソン符号順位検定.
Constructor Details
#initialize ⇒ TwoSideTestLib
Returns a new instance of TwoSideTestLib.
15 16 17 |
# File 'lib/num4hypothtst.rb', line 15 def initialize @hypothTest = TwoSideTest.getInstance() end |
Instance Method Details
#chi2DistTest(statistic, df, a) ⇒ boolean
階2乗検定
35 36 37 |
# File 'lib/num4hypothtst.rb', line 35 def chi2DistTest(statistic, df, a) return @hypothTest.chi2DistTest(statistic, df, a) end |
#fDistTest(statistic, nf, df, a) ⇒ boolean
F検定
55 56 57 |
# File 'lib/num4hypothtst.rb', line 55 def fDistTest(statistic, nf, df, a) return @hypothTest.fDistTest(statistic, nf, df, a) end |
#normDistTest(statistic, a) ⇒ boolean
標準正規分布検定
44 45 46 |
# File 'lib/num4hypothtst.rb', line 44 def normDistTest(statistic, a) return @hypothTest.normDistTest(statistic, a) end |
#tDistTest(statistic, df, a) ⇒ boolean
T検定
25 26 27 |
# File 'lib/num4hypothtst.rb', line 25 def tDistTest(statistic, df, a) return @hypothTest.tDistTest(statistic, df, a) end |
#wilcoxon(statistic, n, a) ⇒ boolean
Note:
内部でN(0,1)に近似して検定
ウィルコクソン符号順位検定
67 68 69 |
# File 'lib/num4hypothtst.rb', line 67 def wilcoxon(statistic, n, a) return @hypothTest.wilcoxon(statistic, n, a) end |