spec/helpers.rb in convolver-0.0.2 vs spec/helpers.rb in convolver-0.1.0
- old
+ new
@@ -10,10 +10,10 @@
elsif given.shape != expected_narray.shape
@error = "Shapes are different."
else
d = given - expected_narray
difference = ( d * d ).sum / d.size
- if difference > 1e-10
+ if difference > 1e-9
@error = "Numerical difference with mean square error #{difference}"
end
end
@given = given.clone