Searched refs:newutility (Results 1 – 1 of 1) sorted by relevance
149 int newutility[3], in simple_lbg()163 newutility[0] = in simple_lbg()164 newutility[1] = 0; in simple_lbg()181 newutility[idx] += dist[idx]; in simple_lbg()184 return newutility[0] + newutility[1]; in simple_lbg()263 static void update_utility_and_n_cb(ELBGContext *elbg, int idx, int newutility) in update_utility_and_n_cb() argument267 elbg->utility[idx] = newutility; in update_utility_and_n_cb()283 int newutility[3]; in try_shift_candidate() local307 newutility[2] = eval_error_cell(elbg, newcentroid[2], elbg->cells[idx[0]]); in try_shift_candidate()308 newutility[2] += eval_error_cell(elbg, newcentroid[2], elbg->cells[idx[2]]); in try_shift_candidate()[all …]