AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::POMDP::Projecter< M > Class Template Reference

This class offers projecting facilities for Models. More...

#include <AIToolbox/POMDP/Algorithms/Utils/Projecter.hpp>

Public Types

using ProjectionsTable = boost::multi_array< VList, 2 >
 
using ProjectionsRow = boost::multi_array< VList, 1 >
 

Public Member Functions

 Projecter (const M &model)
 Basic constructor. More...
 
ProjectionsTable operator() (const VList &w)
 This function returns all possible projections for the provided VList. More...
 
ProjectionsRow operator() (const VList &w, size_t a)
 This function returns all possible projections for the provided VList and action. More...
 

Detailed Description

template<IsModel M>
class AIToolbox::POMDP::Projecter< M >

This class offers projecting facilities for Models.

Member Typedef Documentation

◆ ProjectionsRow

template<IsModel M>
using AIToolbox::POMDP::Projecter< M >::ProjectionsRow = boost::multi_array<VList, 1>

◆ ProjectionsTable

template<IsModel M>
using AIToolbox::POMDP::Projecter< M >::ProjectionsTable = boost::multi_array<VList, 2>

Constructor & Destructor Documentation

◆ Projecter()

template<IsModel M>
AIToolbox::POMDP::Projecter< M >::Projecter ( const M &  model)

Basic constructor.

This constructor initializes the internal immediate reward table and the table containing what are the possible observations for the model (this may speed up the computation of the projections).

Parameters
modelThe model that is used as a base for all projections.

Member Function Documentation

◆ operator()() [1/2]

template<IsModel M>
Projecter< M >::ProjectionsTable AIToolbox::POMDP::Projecter< M >::operator() ( const VList w)

This function returns all possible projections for the provided VList.

Parameters
wThe list that needs to be projected.
Returns
A 2d array of projection lists.

◆ operator()() [2/2]

template<IsModel M>
Projecter< M >::ProjectionsRow AIToolbox::POMDP::Projecter< M >::operator() ( const VList w,
size_t  a 
)

This function returns all possible projections for the provided VList and action.

Parameters
wThe list that needs to be projected.
aThe action used for projecting the list.
Returns
A 1d array of projection lists.

The documentation for this class was generated from the following file: