AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::algorithms::SuccessorSampler< typename > Class Template Referenceabstract

#include "probfd/algorithms/successor_sampler.h"

Description

template<typename>
class probfd::algorithms::SuccessorSampler< typename >

An interface used to sample a state from a successor distribution.

Used by sample-based heuristic search algorithms like LRTDP.

Template Parameters
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.
 

Member Function Documentation

◆ sample()

template<typename >
virtual StateID probfd::algorithms::SuccessorSampler< typename >::sample ( StateID state,
Action action,
const Distribution< StateID > & successor_dist,
StateProperties & properties )
pure virtual

Samples a successor from the successor distribution of a transition.

Parameters
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.

◆ print_statistics()

template<typename >
virtual void probfd::algorithms::SuccessorSampler< typename >::print_statistics ( std::ostream & ) const
inlinevirtual

Prints statistics, e.g. the number of queries made to the interface.