Beispiel #1
0
 def test_intersect_aggregator_temporal_some_overlap_pair_case4(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'temporal')
     fst = [Anomaly.from_epoch(1, 3)]
     snd = [Anomaly.from_epoch(0, 4)]
     expected = [(1, 3)]
     self.case_temporal(intersect, fst, snd, expected)
Beispiel #2
0
 def test_intersect_aggregator_anomaly_wise_some_overlap_non_strict(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'anomaly')
     intersect.set_param_value('strict', False)
     a1 = Anomaly.from_epoch(0, 2)
     a2 = Anomaly.from_epoch(1, 3)
     expected = [a1, a2]
     self.case_anomaly_wise(intersect, [a1], [a2], expected)
Beispiel #3
0
 def test_intersect_aggregator_anomaly_wise_some_overlap_strict(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'anomaly')
     intersect.set_param_value('strict', True)
     fst = [Anomaly.from_epoch(0, 2)]
     snd = [Anomaly.from_epoch(1, 3)]
     expected = []
     self.case_anomaly_wise(intersect, fst, snd, expected)
Beispiel #4
0
 def test_intersect_aggregator_anomaly_wise_full_overlap(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'anomaly')
     intersect.set_param_value('strict', False)
     a1 = Anomaly.from_epoch(0, 5)
     a2 = Anomaly.from_epoch(2, 5)
     a3 = Anomaly.from_epoch(2, 6)
     fst = [a1]
     snd = [a2, a3]
     expected = fst + snd
     self.case_anomaly_wise(intersect, fst, snd, expected)
Beispiel #5
0
 def test_intersect_aggregator_temporal_edge_case(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'temporal')
     self.case_temporal(intersect, [], [], [])
Beispiel #6
0
 def test_intersect_aggregator_anomaly_wise_edge_case(self):
     intersect = Intersect('test')
     intersect.set_param_value('resolution', 'anomaly')
     self.case_anomaly_wise(intersect, [], [], [])