Lines Matching refs:weights
439 Buffer_int weights; member in WeightedRand
446 for (int i=0; i<size; ++i) weights.append(DEFAULT_WEIGHT); in WeightedRand()
450 weights.append_array( (*weight_list),s); in WeightedRand()
451 for (int i=s; i<size; ++i) weights.append(DEFAULT_WEIGHT); in WeightedRand()
453 weights.append_array( (*weight_list),size); in WeightedRand()
457 int c = weights.content_size(); in WeightedRand()
459 total += weights[i]; in WeightedRand()
464 weights.append(weight); in append()
492 mark -= weights[i]; // 0 <= mark <= total in next()
738 Repeat(Pick * base, int minCount =0, int maxCount = 1, Buffer_int * weights = NULL): in Repeat() argument
739 wr(weights, maxCount-minCount +1) { in Repeat()
1040 Buffer_int weights; in repeat() local
1043 weights.append(w); in repeat()
1056 if (question && weights.content_size() > 0){ in repeat()
1058 w2.append(DEFAULT_WEIGHT - weights[0]).append(weights[0]); in repeat()
1062 node = new Repeat(node,min,max,&weights); in repeat()