bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType > Class Template Reference

#include <uniform_distribution.h>

Public Types

typedef OutType out_type
 
typedef std::vector< WeightTypeweights_type
 

Public Member Functions

template<typename VectorType >
 UniformWeightedDist (const VectorType &weights)
 Initialize with a list of weights see also: https://www.cplusplus.com/reference/random/discrete_distribution/.
 
 UniformWeightedDist (std::initializer_list< WeightType > weights)
 Initialize with a list of weights see also: https://www.cplusplus.com/reference/random/discrete_distribution/.
 
out_type sample ()
 Get a sample.
 
out_type sample (uint_t seed)
 Get a sample.
 
std::vector< real_tprobabilities () const
 

Member Typedef Documentation

◆ out_type

◆ weights_type

Constructor & Destructor Documentation

◆ UniformWeightedDist() [1/2]

◆ UniformWeightedDist() [2/2]

bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::UniformWeightedDist ( std::initializer_list< WeightType weights)

Initialize with a list of weights see also: https://www.cplusplus.com/reference/random/discrete_distribution/.

Member Function Documentation

◆ probabilities()

template<typename OutType , typename WeightType = real_t>
std::vector< real_t > bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::probabilities ( ) const
inline

returns the [a, b] range

◆ sample() [1/2]

◆ sample() [2/2]


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