Module: Num4NormalityLib

Defined in:
lib/num4normality.rb

Overview

正規性の検定

(Apache commoms math3

Class Method Summary collapse

Class Method Details

.ksplot(dname, xi) ⇒ void

Note:

グラフは、jfreechartを使用

コルモゴルフ・スミルノフ検定プロット(1標本)

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.ksplot("LDH", xi)
=> kstest.jpeg


39
40
41
# File 'lib/num4normality.rb', line 39

def ksplot(dname, xi)
    Normality.ksplot(dname, xi.to_java(Java::double))
end

.kstest(xi) ⇒ boolean

コルモゴルフ・スミルノフ検定(1標本)

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.kstest(xi)
=> false


54
55
56
# File 'lib/num4normality.rb', line 54

def kstest(xi)
    Normality.kstest(xi.to_java(Java::double))
end

.kurtosistest(xi) ⇒ boolean

タコスディーノ検定(尖度)

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.kurtosistest(xi)
=> false


79
80
81
# File 'lib/num4normality.rb', line 79

def kurtosistest(xi)
    Normality.kurtosistest(xi.to_java(Java::double))
end

.omnibustest(xi) ⇒ boolean

オムニバス検定

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.omnibustest(xi)
=> false


91
92
93
# File 'lib/num4normality.rb', line 91

def omnibustest(xi)
     Normality.omnibustest(xi.to_java(Java::double))
end

.qqksplot(dname, xi) ⇒ Object



42
43
44
# File 'lib/num4normality.rb', line 42

def qqksplot(dname, xi)
    Normality.qqksplot(dname, xi.to_java(Java::double))
end

.qqplot(dname, xi) ⇒ void

Note:

グラフは、jfreechartを使用

Q-Qプロット

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.qqplot("LDH", xi)
=> qqplot.jpeg


24
25
26
# File 'lib/num4normality.rb', line 24

def qqplot(dname, xi)
    Normality.qqplot(dname, xi.to_java(Java::double))
end

.skewnesstest(xi) ⇒ boolean

タコスディーノ検定(歪度)

Examples:

xi = [320, 240, 402, 325, 440, 286, 362, 281, 560, 212, 198, 209, 374]
Num4NormalityLib.skewnesstest(xi)
=> false


67
68
69
# File 'lib/num4normality.rb', line 67

def skewnesstest(xi)
    Normality.skewnesstest(xi.to_java(Java::double))
end