def all_dbf_points_of_change_dk(all_tsks, max_t, dk): all_points = [dbf_points_of_change_dk(t, max_t, dk) for t in all_tsks] return uniq(imerge(lambda x,y: x < y, *all_points))
def test_uniq(self): s = iter.uniq(iter.imerge(lambda x, y: x < y, self.s1, self.s2, self.s3)) self.assertEqual(list(s)[:10], [-3, 1, 4, 7, 9, 10, 13, 14, 16, 19])
def rbf_points_of_change(self, max_t=None, offset=0): all_pts = [t.rbf_points_of_change(max_t, offset) for t in self] return uniq(merge(*all_pts))
def rbf_points_of_change(self, max_t = None, offset = 0): all_pts = [t.rbf_points_of_change(max_t, offset) for t in self] return uniq(merge(*all_pts))
def testing_set(ts, speed, min_time): all_points = [test_points(ti, speed, min_time) for ti in ts] return uniq(imerge(lambda x,y: x < y, *all_points))
def testing_set(ts, speed, min_time): all_points = [test_points(ti, speed, min_time) for ti in ts] return uniq(imerge(lambda x, y: x < y, *all_points))
def all_dbf_points_of_change_dk(all_tsks, max_t, dk): all_points = [dbf_points_of_change_dk(t, max_t, dk) for t in all_tsks] return uniq(imerge(lambda x, y: x < y, *all_points))