Class: Num4AnovaLib::OneWayLayoutLib
- Inherits:
-
Object
- Object
- Num4AnovaLib::OneWayLayoutLib
- Defined in:
- lib/num4anova.rb
Overview
一元配置の分散分析
Instance Method Summary collapse
-
#bartlet(xi, a) ⇒ boolean
バートレット検定.
-
#boxWhiskerPlot(dname, vals) ⇒ void
箱ひげ図.
-
#initialize ⇒ OneWayLayoutLib
constructor
A new instance of OneWayLayoutLib.
-
#kruskalwallis_test(xi, a) ⇒ boolean
クラスカル・ウォリスの検定.
-
#oneway_anova(xi, a) ⇒ boolean
一元配置分散分析.
-
#oneway_scatter_plot(dname, vals) ⇒ void
一元散布図.
-
#replicate_plot(dname, vals) ⇒ void
反復測定Plot.
-
#replicate_test(xi, a) ⇒ boolean
反復測定検定.
Constructor Details
#initialize ⇒ OneWayLayoutLib
Returns a new instance of OneWayLayoutLib.
15 16 17 |
# File 'lib/num4anova.rb', line 15 def initialize @oneWay = OneWayLayout.getInstance() end |
Instance Method Details
#bartlet(xi, a) ⇒ boolean
バートレット検定
107 108 109 |
# File 'lib/num4anova.rb', line 107 def (xi, a) return @oneWay.(xi.to_java(Java::double[]), a) end |
#boxWhiskerPlot(dname, vals) ⇒ void
Note:
グラフは、jfreechartを使用
箱ひげ図
37 38 39 40 41 42 43 |
# File 'lib/num4anova.rb', line 37 def boxWhiskerPlot(dname, vals) o = HashMap.new vals.each{|k, v| o[k] = v.to_java(Java::double) } @oneWay.boxWhiskerPlot(dname, o) end |
#kruskalwallis_test(xi, a) ⇒ boolean
クラスカル・ウォリスの検定
169 170 171 |
# File 'lib/num4anova.rb', line 169 def kruskalwallis_test(xi, a) return @oneWay.kruskalWallisTest(xi.to_java(Java::double[]), a) end |
#oneway_anova(xi, a) ⇒ boolean
一元配置分散分析
87 88 89 |
# File 'lib/num4anova.rb', line 87 def oneway_anova(xi, a) return @oneWay.onewayanova(xi.to_java(Java::double[]), a) end |
#oneway_scatter_plot(dname, vals) ⇒ void
Note:
グラフは、jfreechartを使用
一元散布図
63 64 65 66 67 68 69 |
# File 'lib/num4anova.rb', line 63 def oneway_scatter_plot(dname, vals) o = HashMap.new vals.each{|k, v| o[k] = v.to_java(Java::double) } @oneWay.oneWayScatterPlot(dname, o) end |
#replicate_plot(dname, vals) ⇒ void
Note:
グラフは、jfreechartを使用
反復測定Plot
128 129 130 131 132 133 134 |
# File 'lib/num4anova.rb', line 128 def replicate_plot(dname, vals) o = HashMap.new vals.each{|k, v| o[k] = v.to_java(Java::double) } return @oneWay.replicatePlot(dname, o) end |
#replicate_test(xi, a) ⇒ boolean
反復測定検定
151 152 153 |
# File 'lib/num4anova.rb', line 151 def replicate_test(xi, a) return @oneWay.replicateTest(xi.to_java(Java::double[]), a) end |