![]() |
Vcsn
2.3a
Be Rational
|
Random generation. More...
#include <f2.hh>
Public Types | |
using | super_t = random_weight_base< f2, RandomGenerator > |
using | value_t = typename super_t::weight_t |
![]() | |
using | weight_weight_t = std::vector< float > |
using | weight_map_t = std::map< typename f2::value_t, float, vcsn::less< f2 >> |
using | randomGenerator_t = RandomGenerator |
using | weight_t = typename f2::value_t |
Private Member Functions | |
value_t | pick_value_ () const |
Additional Inherited Members | |
![]() | |
random_weight_base (RandomGenerator &gen, const f2 &ws) | |
void | parse_param (const std::string ¶m) |
weight_t | generate_random_weight () const |
![]() | |
virtual void | parse_param_ (const std::string &weights) |
weight_t | print_random_weight_ () const |
A random weight. More... | |
![]() | |
f2 | ws_ |
weight_t | min_ |
The min and the max given by the user. More... | |
weight_t | max_ |
RandomGenerator & | gen_ |
weight_map_t | weight_ |
Elements given by the user and their associated probabilities (weight_weight_). More... | |
weight_weight_t | weight_weight_ |
discrete_chooser< RandomGenerator > | chooser_it_ |
Random generation.
using vcsn::detail::random_weight< f2, RandomGenerator >::super_t = random_weight_base<f2, RandomGenerator> |
using vcsn::detail::random_weight< f2, RandomGenerator >::value_t = typename super_t::weight_t |
|
inlineprivatevirtual |