AIToolbox
A library that offers tools for AI problem solving.
Utils.hpp File Reference
#include <stddef.h>
#include <AIToolbox/MDP/Types.hpp>
#include <AIToolbox/MDP/TypeTraits.hpp>

Go to the source code of this file.

Namespaces

 AIToolbox
 
 AIToolbox::MDP
 

Functions

QFunction AIToolbox::MDP::makeQFunction (size_t S, size_t A)
 This function creates and zeroes a QFunction. More...
 
ValueFunction AIToolbox::MDP::makeValueFunction (size_t S)
 This function creates and zeroes a ValueFunction. More...
 
ValueFunction AIToolbox::MDP::bellmanOperator (const QFunction &q)
 This function converts a QFunction into the equivalent optimal ValueFunction. More...
 
void AIToolbox::MDP::bellmanOperatorInplace (const QFunction &q, ValueFunction *v)
 This function converts a QFunction into the equivalent optimal ValueFunction. More...
 
template<IsModel M>
Matrix2D AIToolbox::MDP::computeImmediateRewards (const M &model)
 This function computes all immediate rewards (state and action) of the MDP once for improved speed. More...
 
template<IsModel M>
QFunction AIToolbox::MDP::computeQFunction (const M &model, const Values &v, QFunction ir)
 This function computes the Model's QFunction from the values of a ValueFunction. More...