Class: Num4TstStatisticLib::NonParametrixTestLib
- Inherits:
-
Object
- Object
- Num4TstStatisticLib::NonParametrixTestLib
- Defined in:
- lib/num4tststatistic.rb
Instance Method Summary collapse
-
#initialize ⇒ NonParametrixTestLib
constructor
A new instance of NonParametrixTestLib.
-
#kendallscorr(x, y) ⇒ double
ケンドールの順位相関係数.
-
#ks2test(xi1, xi2) ⇒ boolean
コルモゴルフ・スミルノフ検定(2標本).
-
#spearmanscorr(x, y) ⇒ double
スピアマンの順位相関係数.
-
#utest(x, y) ⇒ double
マン・ホイットニーのU検定.
-
#wilcoxontest(x, y) ⇒ double
ウィルコクス符号付き順位検定.
Constructor Details
#initialize ⇒ NonParametrixTestLib
Returns a new instance of NonParametrixTestLib.
232 233 234 |
# File 'lib/num4tststatistic.rb', line 232 def initialize @nonParamTest = NonParametrixTest.getInstance() end |
Instance Method Details
#kendallscorr(x, y) ⇒ double
Note:
無相関検定
ケンドールの順位相関係数
300 301 302 |
# File 'lib/num4tststatistic.rb', line 300 def kendallscorr(x, y) return @nonParamTest.kendallscorr(x.to_java(Java::double), y.to_java(Java::double)) end |
#ks2test(xi1, xi2) ⇒ boolean
Note:
N1+N2-2のt分布に従う
コルモゴルフ・スミルノフ検定(2標本)
318 319 320 |
# File 'lib/num4tststatistic.rb', line 318 def ks2test(xi1, xi2, a) return @nonParamTest.ks2test(xi1.to_java(Java::double), xi2.to_java(Java::double), a) end |
#spearmanscorr(x, y) ⇒ double
Note:
無相関検定
スピアマンの順位相関係数
283 284 285 |
# File 'lib/num4tststatistic.rb', line 283 def spearmanscorr(x, y) return @nonParamTest.spearmanscorr(x.to_java(Java::double), y.to_java(Java::double)) end |
#utest(x, y) ⇒ double
Note:
近似的に標準正規分布 N(0,1*1)に従う
マン・ホイットニーのU検定
249 250 251 |
# File 'lib/num4tststatistic.rb', line 249 def utest(x, y) return @nonParamTest.utest(x.to_java(Java::double), y.to_java(Java::double)) end |
#wilcoxontest(x, y) ⇒ double
Note:
近似的に標準正規分布 N(0,1*1)に従う
ウィルコクス符号付き順位検定
266 267 268 |
# File 'lib/num4tststatistic.rb', line 266 def wilcoxon(x, y) return @nonParamTest.wilcoxon(x.to_java(Java::double), y.to_java(Java::double)) end |