AIToolbox
A library that offers tools for AI problem solving.
|
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... | |
This class generates reachable beliefs from a given Model.
using AIToolbox::POMDP::BeliefGenerator< M >::BeliefList = std::vector<Belief> |
AIToolbox::POMDP::BeliefGenerator< M >::BeliefGenerator | ( | const M & | model | ) |
Basic constructor.
model | The Model used to generate beliefs. |
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.
beliefNumber | The number of beliefs to generate. |
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.
beliefNumber | The numbers of beliefs the input list should at least have. |
bl | The list to add beliefs to. |