Class: Num4AnovaLib::Num4AncovaLib
- Inherits:
-
Object
- Object
- Num4AnovaLib::Num4AncovaLib
- Defined in:
- lib/num4anova.rb
Overview
共分散分析
Instance Method Summary collapse
-
#difference_test(xi, a) ⇒ boolean
水準間の差の検定.
-
#initialize ⇒ Num4AncovaLib
constructor
A new instance of Num4AncovaLib.
-
#interval_estim(xi, a) ⇒ Hash
区間推定.
-
#parallel_test(xi, a) ⇒ boolean
回帰直線の平行性検定.
-
#significance_test(xi, a) ⇒ boolean
回帰直線の有意性検定.
Constructor Details
#initialize ⇒ Num4AncovaLib
Returns a new instance of Num4AncovaLib.
304 305 306 |
# File 'lib/num4anova.rb', line 304 def initialize @ancova = Ancova.getInstance() end |
Instance Method Details
#difference_test(xi, a) ⇒ boolean
水準間の差の検定
394 395 396 |
# File 'lib/num4anova.rb', line 394 def difference_test(xi, a) @ancova.differenceTest(xi.to_java(Java::double[][]), a) end |
#interval_estim(xi, a) ⇒ Hash
区間推定
429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/num4anova.rb', line 429 def interval_estim(xi, a) retRb = [] retJava = @ancova.intervalEstim(xi.to_java(Java::double[][]), a) sz = retJava.size sz.times do |i| retRb.push( { "min": retJava[i].getMin(), "max": retJava[i].getMax() } ) end return retRb end |
#parallel_test(xi, a) ⇒ boolean
回帰直線の平行性検定
334 335 336 |
# File 'lib/num4anova.rb', line 334 def parallel_test(xi, a) @ancova.parallelTest(xi.to_java(Java::double[][]), a) end |
#significance_test(xi, a) ⇒ boolean
回帰直線の有意性検定
364 365 366 |
# File 'lib/num4anova.rb', line 364 def significance_test(xi, a) @ancova.significanceTest(xi.to_java(Java::double[][]), a) end |