Class: Num4HypothTestLib::DecorrTestLib

Inherits:
Object
  • Object
show all
Defined in:
lib/num4hypothtst.rb

Overview

無相関の検定

Instance Method Summary collapse

Constructor Details

#initializeDecorrTestLib

Returns a new instance of DecorrTestLib.



219
220
221
# File 'lib/num4hypothtst.rb', line 219

def initialize
    @hypothTest = DecorrTest.getInstance()
end

Instance Method Details

#twoSideTest(r, n, a) ⇒ boolean

両側検定

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • r (double)

    相関係数

  • n (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



229
230
231
# File 'lib/num4hypothtst.rb', line 229

def twoSideTest(r, n, a)
    return @hypothTest.twoSideTest(r, n, a)
end