bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
export_policy::CliffWalk Class Reference

#include <cliff_walk.h>

Public Types

typedef bitrl::uint_t state_type
typedef bitrl::uint_t action_type
typedef bitrl::TimeStep< bitrl::uint_t > time_step_type

Public Member Functions

bitrl::uint_t n_states () const noexcept
bitrl::uint_t n_actions () const noexcept
time_step_type reset ()
time_step_type step (action_type a)

Static Public Member Functions

static bool is_cliff (bitrl::uint_t s)
static bitrl::uint_t move (bitrl::uint_t s, bitrl::uint_t a)
template<typename Policy>
static std::string draw (const Policy &policy)

Static Public Attributes

static constexpr bitrl::uint_t N_ROWS = 4
static constexpr bitrl::uint_t N_COLS = 12
static constexpr bitrl::uint_t START = (N_ROWS - 1) * N_COLS
static constexpr bitrl::uint_t GOAL = N_ROWS * N_COLS - 1

Member Typedef Documentation

◆ action_type

◆ state_type

◆ time_step_type

Member Function Documentation

◆ draw()

template<typename Policy>
std::string examples::CliffWalk::draw ( const Policy & policy)
inlinestatic

◆ is_cliff()

◆ move()

◆ n_actions()

◆ n_states()

bitrl::uint_t examples::CliffWalk::n_states ( ) const
inlinenoexcept

◆ reset()

◆ step()

Member Data Documentation

◆ GOAL

◆ N_COLS

◆ N_ROWS

◆ START


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