test/test_gsl.rb in statsample-1.4.3 vs test/test_gsl.rb in statsample-1.5.0
- old
+ new
@@ -1,10 +1,10 @@
require(File.expand_path(File.dirname(__FILE__) + '/helpers_tests.rb'))
class StatsampleGSLTestCase < Minitest::Test
should_with_gsl 'matrix with gsl' do
- 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)
+ a = [1, 2, 3, 4, 20].to_vector(:numeric)
+ b = [3, 2, 3, 4, 50].to_vector(:numeric)
+ c = [6, 2, 3, 4, 3].to_vector(:numeric)
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