def test_schumuckler_oscillation(self): seq = [[0, 1, 2, 3], [0, 1, 3, 2], [0, 2, 1, 3]] mc = Comparison(*[Contour(s) for s in seq]) r = [[0, 0, 3, 3], [1, 0.25, 4, 2], [2, 0.5, 5, 5/3]] self.assertEqual(mc.schmuckler_oscillation().as_matrix().tolist(), r)