Vcsn  2.8
Be Rational
vcsn::detail::random_weight< qmp, RandomGenerator > Class Template Reference

Random generation. More...

#include <qmp.hh>

Inheritance diagram for vcsn::detail::random_weight< qmp, RandomGenerator >:
Collaboration diagram for vcsn::detail::random_weight< qmp, RandomGenerator >:

Public Types

using super_t = random_weight_base< qmp, RandomGenerator >
 
using value_t = typename super_t::weight_t
 
- Public Types inherited from vcsn::detail::random_weight_base< qmp, RandomGenerator >
using weightset_t = qmp
 
using weight_t = typename weightset_t::value_t
 
using random_generator_t = RandomGenerator
 

Private Member Functions

value_t pick_value_ () const
 

Additional Inherited Members

- Public Member Functions inherited from vcsn::detail::random_weight_base< qmp, RandomGenerator >
 random_weight_base (random_generator_t &gen, const weightset_t &ws)
 
void parse_param (const std::string &param)
 
weight_t generate_random_weight () const
 
- Protected Types inherited from vcsn::detail::random_weight_base< qmp, RandomGenerator >
using weight_map_t = std::map< weight_t, float, vcsn::less< weightset_t > >
 Elements given by the user and their associated probabilities (weight_weight_). More...
 
using weight_weight_t = std::vector< float >
 
- Protected Member Functions inherited from vcsn::detail::random_weight_base< qmp, RandomGenerator >
virtual void parse_param_ (const std::string &weights)
 
weight_t print_random_weight_ () const
 A random weight. More...
 
- Protected Attributes inherited from vcsn::detail::random_weight_base< qmp, RandomGenerator >
random_generator_tgen_
 
weightset_t ws_
 
weight_t min_
 The min and the max given by the user. More...
 
weight_t max_
 
weight_map_t weight_
 
weight_weight_t weight_weight_
 
discrete_chooser< random_generator_tchooser_it_
 

Detailed Description

template<typename RandomGenerator>
class vcsn::detail::random_weight< qmp, RandomGenerator >

Random generation.

Definition at line 242 of file qmp.hh.

Member Typedef Documentation

◆ super_t

template<typename RandomGenerator >
using vcsn::detail::random_weight< qmp, RandomGenerator >::super_t = random_weight_base<qmp, RandomGenerator>

Definition at line 246 of file qmp.hh.

◆ value_t

template<typename RandomGenerator >
using vcsn::detail::random_weight< qmp, RandomGenerator >::value_t = typename super_t::weight_t

Definition at line 247 of file qmp.hh.

Member Function Documentation

◆ pick_value_()

template<typename RandomGenerator >
value_t vcsn::detail::random_weight< qmp, RandomGenerator >::pick_value_ ( ) const
inlineprivatevirtual

Implements vcsn::detail::random_weight_base< qmp, RandomGenerator >.

Definition at line 252 of file qmp.hh.

References vcsn::detail::VCSN_JOIN_SIMPLE().

Here is the call graph for this function:

The documentation for this class was generated from the following file: