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]]))
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]]))
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]]))
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]]))
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]]))
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]]))
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]]))
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]]))