Sha256: a87b919187eb030ff2cfa71810fb1f7b4a070a7e56c882a0eb2e4001f22a775b

Contents?: true

Size: 550 Bytes

Versions: 6

Compression:

Stored size: 550 Bytes

Contents

require(File.expand_path(File.dirname(__FILE__) + '/helpers_tests.rb'))
class StatsampleGSLTestCase < Minitest::Test
  should_with_gsl 'matrix with gsl' do
    a = Daru::Vector.new([1, 2, 3, 4, 20])
    b = Daru::Vector.new([3, 2, 3, 4, 50])
    c = Daru::Vector.new([6, 2, 3, 4, 3])
    ds = Daru::DataFrame.new({ :a => a, :b => b, :c => c })
    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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
statsample-ekatena-2.0.2.1 test/test_gsl.rb
statsample-ekatena-2.0.2 test/test_gsl.rb
statsample-2.1.0 test/test_gsl.rb
statsample-2.0.2 test/test_gsl.rb
statsample-2.0.1 test/test_gsl.rb
statsample-2.0.0 test/test_gsl.rb