bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start > Struct Template Reference

#include <env_types.h>

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
 

Static Public Member Functions

static action_type sample_action ()
 sample
 
static action_type sample_action (uint_t seed)
 sample
 
static std::vector< action_typesample_action (uint_t seed, uint_t size)
 

Static Public 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
 

Member Typedef Documentation

◆ action_space

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
typedef ScalarDiscreteSpace<action_start, action_end> bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::action_space

the action space type

◆ action_type

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
typedef action_space::space_item_type bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::action_type

the Action type

◆ state_space

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
typedef ScalarDiscreteSpace<state_start, state_end> bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::state_space

item_t

◆ state_type

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
typedef state_space::space_item_type bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::state_type

the State type

Member Function Documentation

◆ sample_action() [1/3]

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
static action_type bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::sample_action ( )
inlinestatic

sample

Returns

◆ sample_action() [2/3]

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
static action_type bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::sample_action ( uint_t  seed)
inlinestatic

sample

Parameters
seed
Returns

◆ sample_action() [3/3]

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
static std::vector< action_type > bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::sample_action ( uint_t  seed,
uint_t  size 
)
inlinestatic

Member Data Documentation

◆ ACTION_SPACE_SIZE

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
constexpr uint_t bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::ACTION_SPACE_SIZE = action_space::size
staticconstexpr

action space size

◆ STATE_SPACE_SIZE

template<uint_t state_end, uint_t action_end, uint_t state_start = 0, uint_t action_start = 0>
constexpr uint_t bitrl::envs::ScalarDiscreteEnv< state_end, action_end, state_start, action_start >::STATE_SPACE_SIZE = state_space::size
staticconstexpr

state space size


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