Home
last modified time | relevance | path

Searched defs:real_alias_table (Results 1 – 1 of 1) sorted by relevance

/third_party/boost/boost/random/
Ddiscrete_distribution.hpp136 struct real_alias_table { struct
137 WeightType get_weight(IntType) const in get_weight()
142 WeightType init_average(Iter first, Iter last) in init_average()
150 void init_empty() in init_empty()
156 bool operator==(const real_alias_table& other) const in operator ==()
160 static WeightType normalize(WeightType val, WeightType average) in normalize()
164 static void normalize(std::vector<WeightType>& weights) in normalize()
178 WeightType test(URNG &urng) const in test()
182 bool accept(IntType, WeightType) const in accept()
186 static WeightType try_get_sum(const std::vector<WeightType>& /* weights */) in try_get_sum()
[all …]