Module: Num4TstStatisticLib

Defined in:
lib/num4tststatistic.rb

Overview

検定統計量を計算

(Apache commoms math3

Defined Under Namespace

Classes: NonParametrixTestLib, ParametrixTestLib

Class Method Summary collapse

Class Method Details

.grubbs(xi, xk) ⇒ double

Note:

外れ値の検定に従う

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

Examples:

xi = [3.4, 3.5, 3.3, 2.2, 3.3, 3.4, 3.6, 3.2]
Num4TstStatisticLib.grubbs(xi, 2.2)
=> 2.3724

Returns 検定統計量.

Parameters:

  • xi (Array)

    xiのデータ(double[])

  • xk (double)

    外れ値

Returns:

  • (double)

    検定統計量



335
336
337
# File 'lib/num4tststatistic.rb', line 335

def grubbs(xi, xk)
    return TstStatistic.grubbs(xi.to_java(Java::double), xk)
end