AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::Factored::DynamicDecisionNetwork Struct Reference

This class represents a Dynamic Decision Network with factored actions. More...

#include <AIToolbox/Factored/Utils/BayesianNetwork.hpp>

Public Types

using TransitionMatrix = std::vector< Matrix2D >
 

Public Member Functions

double getTransitionProbability (const State &s, const Action &a, const State &s1) const
 This function returns the probability of a transition from one state to another with the given action. More...
 
double getTransitionProbability (const PartialState &s, const PartialAction &a, const PartialState &s1) const
 This function returns the probability of a transition from one state to another. More...
 

Public Attributes

const DDNGraphgraph
 
TransitionMatrix transitions
 

Detailed Description

This class represents a Dynamic Decision Network with factored actions.

This class is able to represent a Dynamic Decision Network where the parents of each factor of the state depend on a particular subset of actions.

See also
DynamicDecisionNetworkGraph

Member Typedef Documentation

◆ TransitionMatrix

Member Function Documentation

◆ getTransitionProbability() [1/2]

double AIToolbox::Factored::DynamicDecisionNetwork::getTransitionProbability ( const PartialState s,
const PartialAction a,
const PartialState s1 
) const

This function returns the probability of a transition from one state to another.

This function allows to compute probabilities for subsets of factors. The parent factors MUST contain all parents of the children!

Parameters
sThe initial factors to start with.
aThe selected action for the transition.
s1The factors we should end up with.
Returns
The probability of the transition.

◆ getTransitionProbability() [2/2]

double AIToolbox::Factored::DynamicDecisionNetwork::getTransitionProbability ( const State s,
const Action a,
const State s1 
) const

This function returns the probability of a transition from one state to another with the given action.

Parameters
sThe initial factors to start with.
aThe selected action for the transition.
s1The factors we should end up with.
Returns
The probability of the transition.

Member Data Documentation

◆ graph

const DDNGraph& AIToolbox::Factored::DynamicDecisionNetwork::graph

◆ transitions

TransitionMatrix AIToolbox::Factored::DynamicDecisionNetwork::transitions

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