Searched refs:weightSum (Results 1 – 5 of 5) sorted by relevance
214 readonly int weightSum; field in Grpc.IntegrationTesting.StressTestClient.WeightedRandomGenerator219 weightSum = 0; in WeightedRandomGenerator()222 weightSum += entry.Value; in WeightedRandomGenerator()223 cumulativeSums.Add(Tuple.Create(weightSum, entry.Key)); in WeightedRandomGenerator()229 int rand = random.Next(weightSum); in GetNext()
138 float weightSum = 0.0f; in chooseWeighted() local141 weightSum += *(weight + ndx); in chooseWeighted()144 float p = getFloat(0.0f, weightSum); in chooseWeighted()
2902 int weightSum = 0; in ParseConstraints() local2920 weightSum = -1; // Can't match. in ParseConstraints()2927 weightSum = -1; in ParseConstraints()2930 weightSum += weight; in ParseConstraints()2933 if (weightSum > bestWeight) { in ParseConstraints()2934 bestWeight = weightSum; in ParseConstraints()
2512 int weightSum = 0; in ParseConstraints() local2530 weightSum = -1; // Can't match. in ParseConstraints()2537 weightSum = -1; in ParseConstraints()2540 weightSum += weight; in ParseConstraints()2543 if (weightSum > bestWeight) { in ParseConstraints()2544 bestWeight = weightSum; in ParseConstraints()
3147 int weightSum = 0; in ParseConstraints() local3165 weightSum = -1; // Can't match. in ParseConstraints()3172 weightSum = -1; in ParseConstraints()3175 weightSum += weight; in ParseConstraints()3178 if (weightSum > bestWeight) { in ParseConstraints()3179 bestWeight = weightSum; in ParseConstraints()