Template Class VectorTimeStep

Class Documentation

template<typename StateType>
class VectorTimeStep

Forward declaration.

VectorTimeSetp class.

Public Types

typedef StateType state_type

state_ Type of the state

Public Functions

VectorTimeStep() = default

Default construcotr.

VectorTimeStep(const std::vector<TimeStepTp> &types, const std::vector<real_t> &rewards, const std::vector<state_type> &obs)

VectorTimeStep. Constructor.

VectorTimeStep(const std::vector<TimeStepTp> &types, const std::vector<real_t> &rewards, const std::vector<state_type> &obs, const std::vector<real_t> &discount_factors)

VectorTimeStep. Constructor.

VectorTimeStep(const std::vector<TimeStepTp> &types, const std::vector<real_t> &rewards, const std::vector<state_type> &obs, const std::vector<real_t> &discount_factors, std::unordered_map<std::string, std::any> &&extra)
VectorTimeStep(const VectorTimeStep &other)

TimeStep.

Parameters:

other

VectorTimeStep &operator=(const VectorTimeStep &other)

Assignment operator.

VectorTimeStep(VectorTimeStep &&other) noexcept

TimeStep.

Parameters:

other

VectorTimeStep &operator=(VectorTimeStep &&other) noexcept

operator =

Parameters:

other

Returns:

inline const std::vector<TimeStepTp> &types() const noexcept

type

Returns:

inline const std::vector<state_type> &observations() const

observation

Returns:

inline const std::vector<real_t> &rewards() const noexcept

reward

Returns:

real_t reward() const noexcept

Returns the sum of the rewards received.

bool done() const noexcept

Returns true if any time step is LAST.

inline const std::vector<real_t> &discounts() const noexcept

discount. Returns the discount factor

bool last() const noexcept

last

Returns: