Template Struct ScalarDiscreteEnv

Struct Documentation

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
struct ScalarDiscreteEnv

Public Types

typedef ScalarDiscreteSpace<state_start, state_end> state_space

item_t

typedef state_space::space_item_type state_type

the State type

typedef ScalarDiscreteSpace<action_start, action_end> action_space

the action space type

typedef action_space::space_item_type action_type

the Action type

Public Static Functions

static inline action_type sample_action()

sample

Returns:

static inline action_type sample_action(uint_t seed)

sample

Parameters:

seed

Returns:

static inline std::vector<action_type> sample_action(uint_t seed, uint_t size)

Public Static Attributes

static constexpr uint_t STATE_SPACE_SIZE = state_space::size

state space size

static constexpr uint_t ACTION_SPACE_SIZE = action_space::size

action space size