Class: Num4DiffTestLib::NonParametrixTestLib
- Inherits:
-
Object
- Object
- Num4DiffTestLib::NonParametrixTestLib
- Defined in:
- lib/num4difftest.rb
Overview
ノンパラメトリック検定
Instance Method Summary collapse
-
#initialize(hypothTest3) ⇒ NonParametrixTestLib
constructor
A new instance of NonParametrixTestLib.
-
#mult2_diff_test(xij, a) ⇒ Array
3群以上の母平均の差の検定(2元配置).
-
#mult_diff_test(xi1, a) ⇒ boolean
3群以上の母平均の差の検定(1元配置).
-
#smple_diff_test(xi1, xi2, a) ⇒ boolean
2群の母平均の差の検定.
Constructor Details
#initialize(hypothTest3) ⇒ NonParametrixTestLib
Returns a new instance of NonParametrixTestLib.
177 178 179 180 181 182 |
# File 'lib/num4difftest.rb', line 177 def initialize(hypothTest3) @hypothTest3 = hypothTest3 @nonParaTest = Num4TstStatistic2Lib::NonParametrixTestLib.new(@hypothTest3) @oneWay = Num4AnovaLib::OneWayLayoutLib.new @twoWay = Num4AnovaLib::TwoWayLayoutLib.new end |
Instance Method Details
#mult2_diff_test(xij, a) ⇒ Array
3群以上の母平均の差の検定(2元配置)
244 245 246 247 248 |
# File 'lib/num4difftest.rb', line 244 def mult2_diff_test(xij, a) raise TypeError unless @hypothTest3.kind_of?(HypothTest3IF) return @twoWay.friedman_test(xij, a) end |
#mult_diff_test(xi1, a) ⇒ boolean
3群以上の母平均の差の検定(1元配置)
222 223 224 225 226 |
# File 'lib/num4difftest.rb', line 222 def mult_diff_test(xi1, a) raise TypeError unless @hypothTest3.kind_of?(HypothTest3IF) return @oneWay.kruskalwallis_test(xi1, a) end |
#smple_diff_test(xi1, xi2, a) ⇒ boolean
2群の母平均の差の検定
197 198 199 200 201 202 203 204 205 |
# File 'lib/num4difftest.rb', line 197 def smple_diff_test(xi1, xi2, a) raise TypeError unless @hypothTest3.kind_of?(HypothTest3IF) if xi1.size == xi2.size then return @nonParaTest.wilcoxon(xi1, xi2, a) else return @nonParaTest.utest(xi1, xi2, a) end end |