Vcsn  2.4
Be Rational
vcsn::detail::random_weight< zmin, RandomGenerator > Class Template Reference

#include <zmin.hh>

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

Public Types

using super_t = random_weight_base< zmin, RandomGenerator >
 
using value_t = typename super_t::weight_t
 
- Public Types inherited from vcsn::detail::random_weight_base< zmin, RandomGenerator >
using weight_weight_t = std::vector< float >
 
using weight_map_t = std::map< typename zmin::value_t, float, vcsn::less< zmin >>
 
using randomGenerator_t = RandomGenerator
 
using weight_t = typename zmin::value_t
 

Private Member Functions

value_t pick_value_ () const
 

Additional Inherited Members

- Public Member Functions inherited from vcsn::detail::random_weight_base< zmin, RandomGenerator >
 random_weight_base (RandomGenerator &gen, const zmin &ws)
 
void parse_param (const std::string &param)
 
weight_t generate_random_weight () const
 
- Protected Member Functions inherited from vcsn::detail::random_weight_base< zmin, 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< zmin, RandomGenerator >
zmin 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_
 

Detailed Description

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

Definition at line 78 of file zmin.hh.

Member Typedef Documentation

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

Definition at line 82 of file zmin.hh.

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

Definition at line 83 of file zmin.hh.

Member Function Documentation

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

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

Definition at line 88 of file zmin.hh.


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