MultiAgentDecisionProcess  Release 0.2.1
Globals Namespace Reference

Globals contains several definitions global to the MADP toolbox. More...

Typedefs

typedef unsigned int Index
 A general index.
typedef unsigned long long int LIndex
 A long long index.

Enumerations

enum  reward_t { REWARD, COST }
 Inherited from Tony's POMDP file format. More...

Functions

bool EqualProbability (double p1, double p2)
bool EqualReward (double r1, double r2)

Variables

const Index INITIAL_JAOHI = 0
 The initial (=empty) joint action-observation history index.
const Index INITIAL_JOHI = 0
 The initial (=empty) joint observation history index.
const unsigned int MAXHORIZON = 999999
 The highest horizon we will consider.
const double PROB_PRECISION = 1e-8
 The precision for probabilities.
const double REWARD_PRECISION = 1e-8
 Used to determine when two (immediate) rewards are considered equal.

Detailed Description

Globals contains several definitions global to the MADP toolbox.

Typedef Documentation

typedef unsigned int Globals::Index

A general index.

Definition at line 44 of file Globals.h.

typedef unsigned long long int Globals::LIndex

A long long index.

Definition at line 46 of file Globals.h.

Enumeration Type Documentation

Inherited from Tony's POMDP file format.

Enumerator:
REWARD 
COST 

Definition at line 72 of file Globals.h.

Function Documentation

bool Globals::EqualProbability ( double  p1,
double  p2 
)

Definition at line 32 of file Globals.cpp.

References PROB_PRECISION.

Referenced by BayesianGameBase::SanityCheck(), and BayesianGameBase::SanityCheckBGBase().

bool Globals::EqualReward ( double  r1,
double  r2 
)

Definition at line 37 of file Globals.cpp.

References REWARD_PRECISION.

Variable Documentation

const Index Globals::INITIAL_JAOHI = 0

The initial (=empty) joint action-observation history index.

Definition at line 69 of file Globals.h.

Referenced by QFunctionJAOHTree::ComputeQ(), and PlanningUnitMADPDiscrete::GetJAOHProbs().

const Index Globals::INITIAL_JOHI = 0
const double Globals::REWARD_PRECISION = 1e-8

Used to determine when two (immediate) rewards are considered equal.

Definition at line 61 of file Globals.h.

Referenced by EqualReward(), and RewardModelMappingSparse::Set().