Class sdm::ExperienceMemoryInterface

Class List > sdm > ExperienceMemoryInterface

  • #include <experience_memory_interface.hpp>

Inherited by the following classes: sdm::ExperienceMemory

Public Types

Type Name
typedef std::tuple< std::shared_ptr< Observation >, std::shared_ptr< Action >, double, std::shared_ptr< Observation >, std::shared_ptr< Action > > sars_transition

Public Functions

Type Name
virtual void push (const std::shared_ptr< Observation > & observation, const std::shared_ptr< Action > & action, const double reward, const std::shared_ptr< Observation > & next_observation, const std::shared_ptr< Action > & next_action, number t) = 0
virtual std::vector< sars_transition > sample (number t, int n=1) = 0
virtual int size () = 0
virtual ~ExperienceMemoryInterface ()

Public Types Documentation

typedef sars_transition

using sdm::ExperienceMemoryInterface::sars_transition =  std::tuple<std::shared_ptr<Observation>, std::shared_ptr<Action>, double, std::shared_ptr<Observation>, std::shared_ptr<Action> >;

Public Functions Documentation

function push

virtual void sdm::ExperienceMemoryInterface::push (
    const std::shared_ptr< Observation > & observation,
    const std::shared_ptr< Action > & action,
    const double reward,
    const std::shared_ptr< Observation > & next_observation,
    const std::shared_ptr< Action > & next_action,
    number t
) = 0

function sample

virtual std::vector< sars_transition > sdm::ExperienceMemoryInterface::sample (
    number t,
    int n=1
) = 0

function size

virtual int sdm::ExperienceMemoryInterface::size () = 0

function ~ExperienceMemoryInterface

inline virtual sdm::ExperienceMemoryInterface::~ExperienceMemoryInterface () 

The documentation for this class was generated from the following file src/sdm/utils/rl/experience_memory_interface.hpp