Home | History | Annotate | Download | only in firmware_TouchMTB

Lines Matching full:ratio

911         """Get the largest gap ratio in the target slot.
920 The ratio threshold is used to prevent the gaps detected in a swipe.
1038 def _get_segments_by_length(self, src_list, segment_flag, ratio):
1039 """Get the segments based on segment_flag and the ratio of the
1045 @param ratio: the ratio of the time interval of the segment
1047 end_size = int(round(len(src_list) * ratio))
1063 def get_segments_x_and_y(self, ax, ay, segment_flag, ratio):
1065 segment_x = self._get_segments_by_length(ax, segment_flag, ratio)
1066 segment_y = self._get_segments_by_length(ay, segment_flag, ratio)
1069 def get_segments_by_distance(self, list_t, list_coord, segment_flag, ratio):
1071 segments based on segment_flag and the ratio. And then use the
1078 @param ratio: the ratio of the distance of the begin/end segment
1095 list_coord, end_to_end_distance * ratio)
1097 list_coord, end_to_end_distance * (1 - ratio))
1117 def get_segments(self, list_t, list_coord, segment_flag, ratio):
1119 the segment_flag and the ratio.
1137 @param ratio: the ratio of the distance of the begin/end segment
1143 segment_flag, ratio)
1145 return (self._get_segments_by_length(list_t, segment_flag, ratio),
1147 ratio))
1150 segment_flag=VAL.WHOLE, ratio=None):
1162 The ratio represents the ratio of the BEGIN or END segment to the whole
1206 displacement, segment_flag, ratio)