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

This class generates reachable beliefs from a given Model. More...

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

Public Types

using BeliefList = std::vector< Belief >
 

Public Member Functions

 BeliefGenerator (const M &model)
 Basic constructor. More...
 
BeliefList operator() (size_t beliefNumber) const
 This function tries to generate at least the specified input number of Beliefs. More...
 
void operator() (size_t beliefNumber, BeliefList *bl) const
 This function tries to generate beliefs so that the input list has at least the specified number of elements. More...
 

Detailed Description

template<IsGenerativeModel M>
class AIToolbox::POMDP::BeliefGenerator< M >

This class generates reachable beliefs from a given Model.

Member Typedef Documentation

◆ BeliefList

template<IsGenerativeModel M>
using AIToolbox::POMDP::BeliefGenerator< M >::BeliefList = std::vector<Belief>

Constructor & Destructor Documentation

◆ BeliefGenerator()

template<IsGenerativeModel M>
AIToolbox::POMDP::BeliefGenerator< M >::BeliefGenerator ( const M &  model)

Basic constructor.

Parameters
modelThe Model used to generate beliefs.

Member Function Documentation

◆ operator()() [1/2]

template<IsGenerativeModel M>
BeliefGenerator< M >::BeliefList AIToolbox::POMDP::BeliefGenerator< M >::operator() ( size_t  beliefNumber) const

This function tries to generate at least the specified input number of Beliefs.

This function generates beliefs starting from the simplex corners of the Belief space, and goes from there.

See also
operator()(size_t, BeliefList*) const;
Parameters
beliefNumberThe number of beliefs to generate.
Returns
A list containing the generated beliefs.

◆ operator()() [2/2]

template<IsGenerativeModel M>
void AIToolbox::POMDP::BeliefGenerator< M >::operator() ( size_t  beliefNumber,
BeliefList bl 
) const

This function tries to generate beliefs so that the input list has at least the specified number of elements.

This function generates beliefs by simulating actions onto already generated beliefs, and sampling from the Model to try to obtain new Beliefs.

Since the generation process is inherently stochastic, this function is not guaranteed to generate the specified number of Beliefs, depending on the probability to actually obtain a new Belief from the ones that have already been generated.

Parameters
beliefNumberThe numbers of beliefs the input list should at least have.
blThe list to add beliefs to.

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