Template Struct ScalarDiscreteSpace¶
Defined in File space_type.h
Struct Documentation¶
-
template<uint_t s, uint_t e>
struct ScalarDiscreteSpace¶ A scalar discrete space can be used to denote a space that only has a single value at each time. For example consider the FrozenLake environment then both the state and the action spaces are ScalarDiscreteSpace.
Public Static Functions
-
static space_item_type sample(bool use_end)¶
sample
- Returns:
-
static space_item_type sample(uint_t seed, bool use_end)¶
sample
- Parameters:
seed –
- Returns:
-
static std::vector<space_item_type> sample(uint_t seed, uint_t size, bool use_end)¶
sample
- Parameters:
seed –
- Returns:
Public Static Attributes
-
static constexpr IntegralRange<s, e> limits = IntegralRange<s, e>()¶
The limits of the space.
-
static constexpr uint_t size = IntegralRange<s, e>::size¶
The overall size of the space meaning how many elements can potentially the space have.
-
static space_item_type sample(bool use_end)¶