Class: Num4HypothTestLib::GrubbsTestLib

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

Overview

グラブス・スミルノフの外れ値の検定

Instance Method Summary collapse

Constructor Details

#initializeGrubbsTestLib

Returns a new instance of GrubbsTestLib.



193
194
195
# File 'lib/num4hypothtst.rb', line 193

def initialize
    @hypothTest2 = GrubbsTest.getInstance()
end

Instance Method Details

#oneSideTest(statistic, n, a) ⇒ boolean

片側検定

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

Parameters:

  • statistic (double)

    検定統計量

  • n (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

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



213
214
215
# File 'lib/num4hypothtst.rb', line 213

def oneSideTest(statistic, n, a)
    return @hypothTest2.oneSideTest(statistic, n, a)
end

#twoSideTest(statistic, n, a) ⇒ boolean

両側検定

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

Parameters:

  • statistic (double)

    検定統計量

  • n (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

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



203
204
205
# File 'lib/num4hypothtst.rb', line 203

def twoSideTest(statistic, n, a)
    return @hypothTest2.twoSideTest(statistic, n, a)
end