Vcsn
2.3
Be Rational
|
Random selector on container, using discrete distribution. More...
#include <random.hh>
Public Member Functions | |
discrete_chooser (RandomGenerator &g) | |
template<typename Iter_weight , typename Iter > | |
Iter | select (Iter_weight start_w, Iter_weight end_w, Iter start) |
template<typename Iter_weight , typename Iter > | |
Iter | operator() (Iter_weight start_w, Iter_weight end_w, Iter start) |
Private Attributes | |
RandomGenerator & | gen_ |
Random selector on container, using discrete distribution.
|
inline |
|
inline |
Definition at line 30 of file random.hh.
References vcsn::discrete_chooser< RandomGenerator >::select().
|
inline |
Definition at line 22 of file random.hh.
References vcsn::discrete_chooser< RandomGenerator >::gen_.
Referenced by vcsn::discrete_chooser< RandomGenerator >::operator()().
|
private |
Definition at line 36 of file random.hh.
Referenced by vcsn::discrete_chooser< RandomGenerator >::select().