spec/logistic_spec.rb in distribution-0.5.0 vs spec/logistic_spec.rb in distribution-0.6.0

- old
+ new

@@ -7,15 +7,15 @@ if @engine.respond_to? :pdf 1.upto(10) { u=rand() s=rand()+1 x=rand()*100-50 - exp=Math.exp(-(x-u)/s)/(s*(1+Math.exp(-(x-u)/s)**2)) - @engine.pdf(x,u,s).should eq(exp) + exp=Math.exp(-(x-u) / s) / (s*(1+Math.exp(-(x-u) / s)**2)) + @engine.pdf(x,u,s).should eq(exp) } else pending("No #{@engine}.pdf") - end + end end it "should return correct cdf" do if @engine.respond_to? :cdf