Module: Rust::RBindings

Defined in:
lib/rust-tests.rb,
lib/rust-effsize.rb

Instance Method Summary collapse

Instance Method Details

#cliff_delta(d1, d2) ⇒ Object



72
73
74
# File 'lib/rust-effsize.rb', line 72

def cliff_delta(d1, d2)
    Rust::EffectSize::CliffDelta.compute(d1, d2)
end

#cohen_d(d1, d2, **args) ⇒ Object



76
77
78
# File 'lib/rust-effsize.rb', line 76

def cohen_d(d1, d2, **args)
    Rust::EffectSize::CohenD.compute(d1, d2)
end

#t_test(d1, d2, **args) ⇒ Object



136
137
138
139
140
141
142
143
# File 'lib/rust-tests.rb', line 136

def t_test(d1, d2, **args)
    paired = args[:paired] || false
    if paired
        return Rust::StatisticalTests::T.paired(d1, d2)
    else
        return Rust::StatisticalTests::T.unpaired(d1, d2)
    end
end

#wilcox_test(d1, d2, **args) ⇒ Object



127
128
129
130
131
132
133
134
# File 'lib/rust-tests.rb', line 127

def wilcox_test(d1, d2, **args)
    paired = args[:paired] || false
    if paired
        return Rust::StatisticalTests::Wilcoxon.paired(d1, d2)
    else
        return Rust::StatisticalTests::Wilcoxon.unpaired(d1, d2)
    end
end