MultiAgentDecisionProcess
|
BeliefInterface is an interface for beliefs, i.e., probability distributions over the state space. More...
#include <BeliefInterface.h>
Public Member Functions | |
BeliefInterface () | |
(default) Constructor More... | |
virtual void | Clear ()=0 |
Clears the belief. More... | |
virtual BeliefInterface * | Clone () const =0 |
Returns a pointer to a copy of this class. More... | |
virtual double | Get (Index sI) const =0 |
Gets the probability of the sI'th state. More... | |
virtual std::vector< double > | Get () const =0 |
Gets a vector of probabilities representing the belief. More... | |
virtual BeliefIteratorGeneric | GetIterator () const =0 |
virtual double | InnerProduct (const std::vector< double > &values) const =0 |
Computes the inner product of a belief with the vector values. More... | |
virtual std::vector< double > | InnerProduct (const VectorSet &v) const =0 |
Computes the inner product of a belief with the VectorSet v. More... | |
virtual std::vector< double > | InnerProduct (const VectorSet &v, const std::vector< bool > &mask) const =0 |
Computes the inner product of a belief with the VectorSet v. More... | |
virtual BeliefInterface & | operator= (const BeliefInterface &o)=0 |
Copy assignment operator. More... | |
virtual double & | operator[] (Index &i)=0 |
Gets the probability of the i'th state. More... | |
virtual double & | operator[] (int &i)=0 |
Gets the probability of the i'th state. More... | |
virtual void | Print () const =0 |
Prints the belief. More... | |
virtual bool | SanityCheck () const =0 |
Checks whether the belief is a valid probability distribution. More... | |
virtual void | Set (const StateDistribution &belief)=0 |
Copy the belief into this object. More... | |
virtual void | Set (const std::vector< double > &belief)=0 |
Copy the belief into this object. More... | |
virtual void | Set (const BeliefInterface &belief)=0 |
Copy the belief into this object. More... | |
virtual void | Set (Index sI, double prob)=0 |
Sets probability of the sI'th state to prob . More... | |
virtual unsigned int | Size () const =0 |
Returns the size of this belief. More... | |
virtual std::string | SoftPrint () const =0 |
Prints the belief. More... | |
virtual | ~BeliefInterface () |
Destructor. More... | |
BeliefInterface is an interface for beliefs, i.e., probability distributions over the state space.
|
inline |
(default) Constructor
|
inlinevirtual |
Destructor.
|
pure virtual |
Clears the belief.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Returns a pointer to a copy of this class.
Implemented in BeliefSparse, Belief, JointBeliefInterface, JointBeliefSparse, JointBeliefEventDriven, and JointBelief.
|
pure virtual |
Gets the probability of the sI'th state.
Implemented in BeliefSparse, and Belief.
Referenced by BeliefSetNonStationary::Add(), Belief::Belief(), QFunctionJAOHTree::ComputeQ(), QPOMDP::ComputeRecursively(), QBG::ComputeRecursively(), MDPSolver::GetQ(), BayesianGameForDecPOMDPStage::ProbRewardForjoahI(), GMAA_MAA_ELSI::ProbRewardForjoahI(), AgentQMDP::ResetEpisode(), AgentBG::ResetEpisode(), AlphaVectorPlanning::SampleBeliefs(), Belief::Set(), and BeliefSparse::Set().
|
pure virtual |
Gets a vector of probabilities representing the belief.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Implemented in BeliefSparse, and Belief.
Referenced by BayesianGameForDecPOMDPStage::ComputeImmediateReward(), QFunctionJAOHTree::ComputeQ(), QHybrid::ComputeQ(), QPOMDP::ComputeRecursively(), QBG::ComputeRecursively(), QHybrid::ComputeRecursively(), MDPSolver::GetQ(), BayesianGameForDecPOMDPStage::ProbRewardForjoahI(), BayesianGameWithClusterInfo::TestApproximateEquivalence(), and BayesianGameWithClusterInfo::TestExactEquivalence().
|
pure virtual |
Computes the inner product of a belief with the vector values.
Implemented in BeliefSparse, and Belief.
Referenced by AlphaVectorBG::BeliefBackupExhaustiveOnlyKeepMax(), BeliefValue::GetMaximizingVectorIndex(), BeliefValue::GetMaximizingVectorIndexAndValue(), PerseusNonStationary::GetQ(), PerseusStationary::GetQ(), QAlphaVector::GetQ(), and BeliefValue::GetValue().
|
pure virtual |
Computes the inner product of a belief with the VectorSet v.
Returns the inner product with each vector in v.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Computes the inner product of a belief with the VectorSet v.
Returns the inner product with each vector in v, but only for vectors whose mask is set to true.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Copy assignment operator.
This must be implemented by the derived class (with this prototype). For an example, see PolicyPoolJPolValPair.
For now, this function is purely abstract. Might there be some members added to this (base) class, then an implementation could be made. This should then be called using PolicyPoolInterface::operator=(o) from the copy assignment operator of the derived class. See also http://www.icu-project.org/docs/papers/cpp_report/the_assignment_operator_revisited.html.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Gets the probability of the i'th state.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Gets the probability of the i'th state.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Prints the belief.
Implemented in BeliefSparse, IndividualBeliefJESP, and Belief.
Referenced by AgentPOMDP::Act(), QFunctionJAOHTree::ComputeQ(), QPOMDP::ComputeRecursively(), QBG::ComputeRecursively(), and PlanningUnitMADPDiscrete::GetJointBeliefInterface().
|
pure virtual |
Checks whether the belief is a valid probability distribution.
Implemented in BeliefSparse, and Belief.
Referenced by BeliefSetNonStationary::Add(), PlanningUnitMADPDiscrete::GetJointBeliefInterface(), BayesianGameForDecPOMDPStage::Initialize(), and AlphaVectorPlanning::SampleBeliefs().
|
pure virtual |
Copy the belief into this object.
Implemented in BeliefSparse, and Belief.
Referenced by PlanningUnitMADPDiscrete::GetJAOHProbs(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), PlanningUnitMADPDiscrete::InitializeJointActionObservationHistories(), AlphaVectorPlanning::SampleBeliefs(), and AlphaVectorPlanning::SampleBeliefsNonStationary().
|
pure virtual |
Copy the belief into this object.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Copy the belief into this object.
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Sets probability of the sI'th state to prob .
Implemented in BeliefSparse, and Belief.
|
pure virtual |
Returns the size of this belief.
Implemented in BeliefSparse, and Belief.
Referenced by BeliefSetNonStationary::Add(), Belief::Belief(), AlphaVectorBG::BeliefBackup(), MDPSolver::GetQ(), Belief::Set(), and BeliefSparse::Set().
|
pure virtual |
Prints the belief.
Implemented in BeliefSparse, IndividualBeliefJESP, and Belief.
Referenced by AlphaVectorWeighted::BeliefBackup(), QPOMDP::ComputeRecursively(), and AgentBG::GetMaximizingBGIndex().