Class: Num4HypothTestLib::RightSideTestLib

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

Overview

片側(右側)検定

Instance Method Summary collapse

Constructor Details

#initialize ⇒ RightSideTestLib

Returns a new instance of RightSideTestLib.



60
61
62
# File 'lib/num4hypothtst.rb', line 60

def initialize
    @hypothTest = RightSideTest.getInstance()
end

Instance Method Details

#chi2DistTest(statistic, df, a) ⇒ Object

階2乗検定

return [boolean] 検定結果(true:棄却域内 false:棄却域外)

Parameters:

  • statistic (double) —

    統計量

  • df (int) —

    自由度

  • a (double) —

    有意水準



80
81
82
# File 'lib/num4hypothtst.rb', line 80

def chi2DistTest(statistic, df, a)
    return @hypothTest.chi2DistTest(statistic, df, a)
end

#fDistTest(statistic, nf, df, a) ⇒ Object

F検定

return [boolean] 検定結果(true:棄却域内 false:棄却域外)

Parameters:

  • statistic (double) —

    統計量

  • nf (int) —

    自由度

  • df (int) —

    自由度

  • a (double) —

    有意水準



100
101
102
# File 'lib/num4hypothtst.rb', line 100

def fDistTest(statistic, nf, df, a)
    return @hypothTest.fDistTest(statistic, nf, df, a)
end

#normDistest(statistic, a) ⇒ Object

標準正規分布検定

return [boolean] 検定結果(true:棄却域内 false:棄却域外)

Parameters:

  • statistic (double) —

    統計量

  • a (double) —

    有意水準



89
90
91
# File 'lib/num4hypothtst.rb', line 89

def normDistest(statistic, a)
    return @hypothTest.normDistest(statistic, a)
end

#tDistTest(statistic, df, a) ⇒ Object

T検定

return [boolean] 検定結果(true:棄却域内 false:棄却域外)

Parameters:

  • statistic (double) —

    統計量

  • df (int) —

    自由度

  • a (double) —

    有意水準



70
71
72
# File 'lib/num4hypothtst.rb', line 70

def tDistTest(statistic, df, a)
    return @hypothTest.tDistTest(statistic, df, a)
end