61template <u
int_t s, u
int_t e>
73 std::random_device rd;
74 std::mt19937 gen(rd());
78template <u
int_t s, u
int_t e>
91 std::mt19937 gen(seed);
95template <u
int_t s, u
int_t e>
96std::vector<typename ScalarDiscreteSpace<s, e>::space_item_type>
107 std::vector<typename ScalarDiscreteSpace<s, e>::space_item_type> vals_;
111 std::mt19937 gen(seed);
112 for (
uint_t i = 0; i < size; ++i)
114 vals_.push_back(dist(gen));
136 static_assert(std::is_floating_point_v<T> ==
true &&
"Floating point type is expected");
152 static_assert(std::is_integral_v<T> ==
true &&
"Integral type is expected");
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23
std::size_t uint_t
uint_t
Definition bitrl_types.h:43
A range of integer values in [s, e].
Definition bitrl_types.h:128
Definition space_type.h:121
static constexpr uint_t size
The overall size of the space meaning how many elements can potentially the space have.
Definition space_type.h:131
real_t space_item_type
item_t
Definition space_type.h:125
Definition space_type.h:135
std::vector< T > space_item_type
item_t
Definition space_type.h:147
static constexpr uint_t size
The overall size of the space meaning how many elements can potentially the space have.
Definition space_type.h:142
Definition space_type.h:151
std::vector< T > space_item_type
item_t
Definition space_type.h:157
static constexpr uint_t size
size. The number of members in the space
Definition space_type.h:162
A scalar discrete space can be used to denote a space that only has a single value at each time....
Definition space_type.h:22
static constexpr IntegralRange< s, e > limits
The limits of the space.
Definition space_type.h:32
uint_t space_item_type
item_t
Definition space_type.h:27
static space_item_type sample(bool use_end)
sample
Definition space_type.h:62
static constexpr uint_t size
The overall size of the space meaning how many elements can potentially the space have.
Definition space_type.h:38