test/test_statistics.rb in statsample-0.3.1 vs test/test_statistics.rb in statsample-0.3.2

- old
+ new

@@ -125,9 +125,18 @@ else puts "SRS.proportion_confidence_interval_z not tested (no ruby-gsl)" end end + def test_ml + if(true) + real=[1,1,1,1].to_vector(:scale) + + pred=[0.0001,0.0001,0.0001,0.0001].to_vector(:scale) + # puts Statsample::Bivariate.maximum_likehood_dichotomic(pred,real) + + end + end def test_simple_linear_regression a=[1,2,3,4,5,6].to_vector(:scale) b=[6,2,4,10,12,8].to_vector(:scale) reg = Statsample::Regression::Simple.new_from_vectors(a,b) assert_in_delta((reg.ssr+reg.sse).to_f,reg.sst,0.001)