Class: Num4HypothTestLib::LeftSideTestLib

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

Overview

片側(左側)検定

Instance Method Summary collapse

Constructor Details

#initialize ⇒ LeftSideTestLib

Returns a new instance of LeftSideTestLib.



106
107
108
# File 'lib/num4hypothtst.rb', line 106

def initialize
    @hypothTest = LeftSideTest.getInstance()
end

Instance Method Details

#chi2DistTest(statistic, df, a) ⇒ Object

階2乗検定

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

Parameters:

  • statistic (double) —

    統計量

  • df (int) —

    自由度

  • a (double) —

    有意水準



126
127
128
# File 'lib/num4hypothtst.rb', line 126

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) —

    有意水準



146
147
148
# File 'lib/num4hypothtst.rb', line 146

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) —

    有意水準



135
136
137
# File 'lib/num4hypothtst.rb', line 135

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) —

    有意水準



116
117
118
# File 'lib/num4hypothtst.rb', line 116

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