lib/genevalidator/validation_duplication.rb in genevalidator-1.6.5 vs lib/genevalidator/validation_duplication.rb in genevalidator-1.6.6

- old
+ new

@@ -249,12 +249,12 @@ ## # wilcox test implementation from statsample ruby gem # many thanks to Claudio for helping us with the implementation! def wilcox_test(averages) - wilcox = Statsample::Test.wilcoxon_signed_rank(averages.to_scale, - Array.new(averages.length, - 1).to_scale) + wilcox = Statsample::Test.wilcoxon_signed_rank(Daru::Vector.new(averages), + Daru::Vector.new(Array.new(averages.length, + 1))) (averages.length < 15) ? wilcox.probability_exact : wilcox.probability_z end end end