Searched refs:norm_width (Results 1 – 1 of 1) sorted by relevance
227 FLOAT32 fp_width_cost(float norm_width, bool end_pos) { in fp_width_cost() argument231 if (norm_width > heuristic_max_char_wh_ratio) in fp_width_cost()232 cost += norm_width; in fp_width_cost()233 if (norm_width > MAX_SQUAT) // extra penalty for merging two CJK chars in fp_width_cost()234 cost += norm_width * norm_width; in fp_width_cost()236 if (norm_width < 0.5 && !end_pos) in fp_width_cost()237 cost += 1 - norm_width; in fp_width_cost()242 float s = fabs((norm_width - 0.85) / 0.35); in fp_width_cost()246 if (end_pos && norm_width < 0.3) in fp_width_cost()249 tprintf("fp_width_cost(%f) = %f**2 = %f\n", norm_width, s, s*s); in fp_width_cost()