Sha256: 900f526430466748eefcdfde3afd16585315d8df8ea0aee4d7fc021aca4e4c38
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 Bytes
Contents
require(File.dirname(__FILE__)+'/test_helpers.rb') class StatsampleGSLTestCase < MiniTest::Unit::TestCase def test_matrix_to_gsl if Statsample.has_gsl? a=[1,2,3,4,20].to_vector(:scale) b=[3,2,3,4,50].to_vector(:scale) c=[6,2,3,4,3].to_vector(:scale) ds={'a'=>a,'b'=>b,'c'=>c}.to_dataset gsl=ds.to_matrix.to_gsl assert_equal(5,gsl.size1) assert_equal(3,gsl.size2) matrix=gsl.to_matrix assert_equal(5,matrix.row_size) assert_equal(3,matrix.column_size) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
statsample-0.8.2 | test/test_gsl.rb |
statsample-0.8.1 | test/test_gsl.rb |
statsample-0.8.0 | test/test_gsl.rb |