Searched refs:value_ranks (Results 1 – 1 of 1) sorted by relevance
120 int ScoreForValue(int value, const int* value_ranks) { in ScoreForValue() argument123 while ((i < rank_count) && ((value_ranks[0] < value_ranks[1]) ? in ScoreForValue()124 (value > value_ranks[i]) : (value < value_ranks[i]))) in ScoreForValue()130 score += (value - value_ranks[i]) * in ScoreForValue()132 (value_ranks[i - 1] - value_ranks[i]); in ScoreForValue()