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
238 total_weight_(0.0), in FixedUnigramSampler()254 total_weight_(0.0), in FixedUnigramSampler()268 return weights_.at(value) / total_weight_; in Probability()302 total_weight_ += w; in LoadFromFile()317 total_weight_ += w; in LoadFromUnigrams()
234 float total_weight_; variable