Searched refs:newutility (Results 1 – 1 of 1) sorted by relevance
135 int newutility[3], in simple_lbg()149 newutility[0] = in simple_lbg()150 newutility[1] = 0; in simple_lbg()167 newutility[idx] += dist[idx]; in simple_lbg()170 return newutility[0] + newutility[1]; in simple_lbg()250 static void update_utility_and_n_cb(elbg_data *elbg, int idx, int newutility) in update_utility_and_n_cb() argument254 elbg->utility[idx] = newutility; in update_utility_and_n_cb()269 int newutility[3]; in try_shift_candidate() local293 newutility[2] = eval_error_cell(elbg, newcentroid[2], elbg->cells[idx[0]]); in try_shift_candidate()294 newutility[2] += eval_error_cell(elbg, newcentroid[2], elbg->cells[idx[2]]); in try_shift_candidate()[all …]