bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::utils Namespace Reference

Namespaces

namespace  geom
 
namespace  io
 
namespace  maths
 
namespace  trajectory
 
namespace  unit_converter
 

Classes

class  BoostSerialGraph
 . Representation of a graph using adjacency lists. The underlying implementation uses Boost Graph library. This wrapper is introduced to simplify the creation and handling of the graph. More...
 
class  ExperienceBuffer
 The ExperienceBuffer class. A buffer based on boost::circular_buffer to accumulate items of type ExperienceType. see for example the A2C algorithm in A2C.h and rl_example_15. More...
 
class  IterationCounter
 The IterationCounter class. More...
 
class  IterativeAlgorithmController
 Controller for iterative algorithms. More...
 
struct  IterativeAlgorithmResult
 The IterativeAlgorithmResult struct. Helper struct to assemble the result of an iterative algorithm. More...
 

Functions

std::string uuid4 ()
 
template<typename GraphType , typename Predicate >
uint_t find_vertex (const GraphType &graph, const Predicate &pred)
 
std::ostream & operator<< (std::ostream &out, const IterativeAlgorithmResult &result)
 
template<typename OutT >
OutT resolve (const std::string &name, const std::map< std::string, std::any > &input)
 
template<typename OutT >
OutT resolve (const std::string &name, const std::unordered_map< std::string, std::any > &input)
 

Function Documentation

◆ find_vertex()

uint_t bitrl::utils::find_vertex ( const GraphType graph,
const Predicate pred 
)

◆ operator<<()

std::ostream & bitrl::utils::operator<< ( std::ostream &  out,
const IterativeAlgorithmResult result 
)
inline

◆ resolve() [1/2]

template<typename OutT >
OutT bitrl::utils::resolve ( const std::string &  name,
const std::map< std::string, std::any > &  input 
)

Given the name of the argument return std::any_cast<OutT>(itr->second) where itr is itr = input.find(name)

◆ resolve() [2/2]

template<typename OutT >
OutT bitrl::utils::resolve ( const std::string &  name,
const std::unordered_map< std::string, std::any > &  input 
)

Given the name of the argument return std::any_cast<OutT>(itr->second) where itr is itr = input.find(name)

◆ uuid4()

std::string bitrl::utils::uuid4 ( )
inline

Generate UUID4 strings using Boost::uuids. For more info on UUIDs see: https://www.ibm.com/docs/en/cobol-zos/6.3.0?topic=functions-uuid4

Returns