Searched refs:total_weight_ (Results 1 – 5 of 5) sorted by relevance
42 bool IsEmpty() const { return total_weight_ == 0; } in IsEmpty()47 total_weight_ += weight; in Pick()48 return weight == total_weight_ || std::uniform_int_distribution<uint64_t>( in Pick()49 1, total_weight_)(*random_) <= weight; in Pick()53 uint64_t total_weight_ = 0; variable
40 total_weight_ = 0; in WeightedRandomTestSelector()42 total_weight_ += it->second; in WeightedRandomTestSelector()53 random = rand() % total_weight_; in GetNextTest()
88 int total_weight_; variable
241 total_weight_(0.0), in FixedUnigramSampler()257 total_weight_(0.0), in FixedUnigramSampler()271 return weights_.at(value) / total_weight_; in Probability()305 total_weight_ += w; in LoadFromFile()320 total_weight_ += w; in LoadFromUnigrams()
234 float total_weight_; variable