Class sdm::ReplayMemory
Class List > sdm > ReplayMemory
#include <replay_memory.hpp>
Public Functions
Type | Name |
---|---|
ReplayMemory (int capacity) | |
void | push (sars_transition t) |
std::vector< sars_transition > | sample (int n) |
int | size () |
Protected Attributes
Type | Name |
---|---|
int | capacity |
std::vector< sars_transition > | memory |
int | position |
Public Functions Documentation
function ReplayMemory
inline sdm::ReplayMemory::ReplayMemory (
int capacity
)
function push
inline void sdm::ReplayMemory::push (
sars_transition t
)
function sample
inline std::vector< sars_transition > sdm::ReplayMemory::sample (
int n
)
function size
inline int sdm::ReplayMemory::size ()
Protected Attributes Documentation
variable capacity
int sdm::ReplayMemory::capacity;
variable memory
std::vector<sars_transition> sdm::ReplayMemory::memory;
variable position
int sdm::ReplayMemory::position;
The documentation for this class was generated from the following file src/sdm/utils/rl/replay_memory.hpp