Searched refs:weightSum (Results 1 – 2 of 2) sorted by relevance
138 float weightSum = 0.0f; in chooseWeighted() local141 weightSum += *(weight + ndx); in chooseWeighted()144 float p = getFloat(0.0f, weightSum); in chooseWeighted()
2422 int weightSum = 0; in ParseConstraints() local2440 weightSum = -1; // Can't match. in ParseConstraints()2447 weightSum = -1; in ParseConstraints()2450 weightSum += weight; in ParseConstraints()2453 if (weightSum > bestWeight) { in ParseConstraints()2454 bestWeight = weightSum; in ParseConstraints()