예제 #1
0
 def test_get_distinct_x_from_2_dimensional_input_data(self):
     comp = a([
         [[1.0, 2.0], [2.0, 2.0]],
         [[2.0, 2.0], [3.0, 3.0]]
     ])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[1.0, 2.0], [2.0, 2.0], [3.0, 3.0]]))
예제 #2
0
 def test_skip_repetitions_within_comparison(self):
     comp = a([
         [[0.0], [1.0]],
         [[2.0], [2.0]]
     ])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[0.0], [1.0], [2.0]]))
예제 #3
0
 def test_skip_repetitions_across_comparisons(self):
     comp = a([
         [[1.0], [2.0]],
         [[2.0], [3.0]]
     ])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[1.0], [2.0], [3.0]]))
예제 #4
0
 def test_get_distinct_x_from_comparisons(self):
     comp = a([
         [[0.0], [1.0]],
         [[2.0], [3.0]]
     ])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[0.0], [1.0], [2.0], [3.0]]))
예제 #5
0
 def test_get_distinct_x_from_2_dimensional_input_data(self):
     comp = a([[[1.0, 2.0], [2.0, 2.0]], [[2.0, 2.0], [3.0, 3.0]]])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[1.0, 2.0], [2.0, 2.0], [3.0, 3.0]]))
예제 #6
0
 def test_skip_repetitions_across_comparisons(self):
     comp = a([[[1.0], [2.0]], [[2.0], [3.0]]])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[1.0], [2.0], [3.0]]))
예제 #7
0
 def test_skip_repetitions_within_comparison(self):
     comp = a([[[0.0], [1.0]], [[2.0], [2.0]]])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[0.0], [1.0], [2.0]]))
예제 #8
0
 def test_get_distinct_x_from_comparisons(self):
     comp = a([[[0.0], [1.0]], [[2.0], [3.0]]])
     x = get_distinct_x(comp)
     self.assertAlmostEqual(x, a([[0.0], [1.0], [2.0], [3.0]]))