|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
#include <uniform_distribution.h>
Public Types | |
| typedef OutType | out_type |
| typedef std::vector< WeightType > | weights_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_t > | probabilities () const |
| typedef std::vector<WeightType> bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::weights_type |
| bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::UniformWeightedDist | ( | const VectorType & | weights | ) |
Initialize with a list of weights see also: https://www.cplusplus.com/reference/random/discrete_distribution/.
| 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/.
|
inline |
returns the [a, b] range
| UniformWeightedDist< OutType, WeightType >::out_type bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::sample | ( | ) |
Get a sample.
| UniformWeightedDist< OutType, WeightType >::out_type bitrl::utils::maths::stats::UniformWeightedDist< OutType, WeightType >::sample | ( | uint_t | seed | ) |
Get a sample.