MultiAgentDecisionProcess  Release 0.2.1
Globals.cpp
Go to the documentation of this file.
1 
28 #include "Globals.h"
29 
30 using namespace std;
31 
32 bool Globals::EqualProbability(double p1, double p2)
33 {
34  return ( abs(p1-p2) < PROB_PRECISION ) ;
35 }
36 
37 bool Globals::EqualReward(double r1, double r2)
38 {
39  return ( abs(r1-r2) < REWARD_PRECISION ) ;
40 }