Template Class TimeStep¶
Defined in File time_step.h
Class Documentation¶
-
template<typename StateTp>
class TimeStep¶ Forward declaration.
The TimeStep class.
Public Functions
-
TimeStep(TimeStepTp type, real_t reward, const state_type &obs)¶
TimeStep. Constructor.
-
TimeStep(TimeStepTp type, real_t reward, const state_type &obs, real_t discount_factor)¶
TimeStep. Constructor.
-
TimeStep(TimeStepTp type, real_t reward, const state_type &obs, real_t discount_factor, std::unordered_map<std::string, std::any> &&extra)¶
TimeStep. Constructor.
-
inline bool first() const noexcept¶
first
- Returns:
-
inline bool mid() const noexcept¶
mid
- Returns:
-
inline bool last() const noexcept¶
last
- Returns:
-
inline TimeStepTp type() const noexcept¶
type
- Returns:
-
inline state_type observation() const¶
observation
- Returns:
-
inline bool done() const noexcept¶
done
- Returns:
-
void clear() noexcept¶
clear
-
inline const std::unordered_map<std::string, std::any> &info() const noexcept¶
info
- Returns:
-
inline std::unordered_map<std::string, std::any> &info() noexcept¶
info
- Returns:
-
TimeStep(TimeStepTp type, real_t reward, const state_type &obs)¶