AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/algorithms/successor_sampler.h"
An interface used to sample a state from a successor distribution.
Used by sample-based heuristic search algorithms like LRTDP.
Action | - The action type of the underlying MDP model. |
Public Member Functions | |
virtual StateID | sample (StateID state, Action action, const Distribution< StateID > &successor_dist, StateProperties &properties)=0 |
Samples a successor from the successor distribution of a transition. | |
virtual void | print_statistics (std::ostream &) const |
Prints statistics, e.g. the number of queries made to the interface. | |
|
pure virtual |
Samples a successor from the successor distribution of a transition.
state | - The source state of the transition. |
action | - The action of the transition. |
successor_dist | - The successor distribution of the transition. |
properties | - The interface to the heuristic search algorithm. Can be used to query additional information about the involved states and actions. |
|
inlinevirtual |
Prints statistics, e.g. the number of queries made to the interface.