I would like to initialize boost::random::discrete_distribution with an std::vector.
boost::random::discrete_distribution
std::vector
My problem is that if I initialize it w
The class seems to have a constructor that takes an iterator range. This would be used with a vector like this:
std::vector<double> probs = ...; boost::random::discrete_distribution<> dist(probs.begin(), probs.end());