• Home
  • Raw
  • Download

Lines Matching refs:ratio

262 static unsigned int get_compensation(int ratio)  in get_compensation()  argument
270 if (ratio == 1 && in get_compensation()
271 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
272 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
273 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
274 comp = (cal_data[ratio].steady_comp + in get_compensation()
275 cal_data[ratio + 1].steady_comp + in get_compensation()
276 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
277 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation()
278 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
279 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
280 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) { in get_compensation()
281 comp = (cal_data[ratio].steady_comp + in get_compensation()
282 cal_data[ratio - 1].steady_comp + in get_compensation()
283 cal_data[ratio - 2].steady_comp) / 3; in get_compensation()
284 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
285 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
286 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) { in get_compensation()
287 comp = (cal_data[ratio].steady_comp + in get_compensation()
288 cal_data[ratio - 1].steady_comp + in get_compensation()
289 cal_data[ratio + 1].steady_comp) / 3; in get_compensation()
294 comp = ratio; in get_compensation()
296 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation()
297 comp = MAX_TARGET_RATIO - ratio - 1; in get_compensation()