Searched defs:integer_alias_table (Results 1 – 1 of 1) sorted by relevance
42 struct integer_alias_table { struct43 WeightType get_weight(IntType bin) const { in get_weight()49 WeightType init_average(Iter begin, Iter end) { in init_average()82 void init_empty() in init_empty()90 bool operator==(const integer_alias_table& other) const in operator ==()95 static WeightType normalize(WeightType val, WeightType /* average */) in normalize()99 static void normalize(std::vector<WeightType>&) {} in normalize()101 WeightType test(URNG &urng) const in test()105 bool accept(IntType result, WeightType val) const in accept()109 static WeightType try_get_sum(const std::vector<WeightType>& weights) in try_get_sum()[all …]