Searched refs:list_coord (Results 1 – 2 of 2) sorted by relevance
/external/autotest/client/site_tests/firmware_TouchMTB/tests/ |
D | mtb_unittest.py | 607 def _test_get_segments(self, list_t, list_coord, expected_segments, ratio): argument 617 list_t, list_coord, segment_flag, ratio) 633 list_coord = [102, 101, 101, 100, 100, 103, 104, 110, 118, 120, 635 list_t = [1000 + 0.012 * i for i in range(len(list_coord))] 638 VAL.WHOLE: (list_t, list_coord), 639 VAL.MIDDLE: (list_t[8:17], list_coord[8:17]), 640 VAL.BEGIN: (list_t[:8], list_coord[:8]), 641 VAL.END: (list_t[17:], list_coord[17:]), 643 self._test_get_segments(list_t, list_coord, expected_segments, ratio)
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | mtb.py | 1069 def get_segments_by_distance(self, list_t, list_coord, segment_flag, ratio): argument 1081 def _find_boundary_index(list_coord, boundary_distance): argument 1089 for i, c in enumerate(list_coord): 1090 if abs(c - list_coord[0]) > boundary_distance: 1093 end_to_end_distance = abs(list_coord[-1] - list_coord[0]) 1095 list_coord, end_to_end_distance * ratio) 1097 list_coord, end_to_end_distance * (1 - ratio)) 1100 segment_coord = list_coord 1103 segment_coord = list_coord[first_idx_mid_seg:last_idx_mid_seg] 1106 segment_coord = list_coord[:first_idx_mid_seg] [all …]
|