Esempio n. 1
0
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))
Esempio n. 2
0
 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])
Esempio n. 3
0
 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])
Esempio n. 4
0
 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))
Esempio n. 5
0
 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))
Esempio n. 6
0
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))
Esempio n. 7
0
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))
Esempio n. 8
0
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))