MultiAgentDecisionProcess
Release 0.2.1
|
BeliefValue is a namespace for functions that compute the value of a particular belief. More...
Functions | |
AlphaVector | GetMaximizingVector (const BeliefSet &S, int k, const ValueFunctionPOMDPDiscrete &V) |
Returns the alpha vector from V that maximizes the value of the k 'th belief in set S. | |
int | GetMaximizingVectorIndex (const JointBeliefInterface &b, const VectorSet &v) |
Returns the index of the vector in v that maximizes the value of b. | |
int | GetMaximizingVectorIndex (const JointBeliefInterface &b, const ValueFunctionPOMDPDiscrete &V) |
int | GetMaximizingVectorIndex (const JointBeliefInterface &b, const VectorSet &v, const std::vector< bool > &mask) |
Returns the index of the vector in v that maximizes the value of b. | |
int | GetMaximizingVectorIndexAndValue (const JointBeliefInterface &b, const VectorSet &v, const std::vector< bool > &mask, double &value) |
double | GetValue (const JointBeliefInterface &Belief, const AlphaVector &alpha) |
Get the value of a single Belief for alpha vecotr alpha. | |
double | GetValue (const JointBeliefInterface &Belief, const ValueFunctionPOMDPDiscrete &V) |
Get the value of a single Belief for value function V. | |
double | GetValue (const JointBeliefInterface &Belief, const QFunctionsDiscreteNonStationary &Q, Index t) |
Get the value of a single Belief for non-stationary q functions Q. | |
double | GetValue (const JointBeliefInterface &Belief, const ValueFunctionPOMDPDiscrete &V, const std::vector< bool > mask) |
Get the value of a single Belief for V given the mask. | |
double | GetValue (const JointBeliefInterface &Belief, const VectorSet &v, const std::vector< bool > mask) |
Get the value of a Belief for v given the mask. | |
std::vector< double > | GetValues (const BeliefSet &Beliefs, const ValueFunctionPOMDPDiscrete &V) |
Get the values of the Beliefs for value function V. | |
std::vector< double > | GetValues (const BeliefSet &Beliefs, const AlphaVector &alpha) |
Get the values of the Beliefs for alpha vector alpha. |
BeliefValue is a namespace for functions that compute the value of a particular belief.
AlphaVector BeliefValue::GetMaximizingVector | ( | const BeliefSet & | S, |
int | k, | ||
const ValueFunctionPOMDPDiscrete & | V | ||
) |
Returns the alpha vector from V that maximizes the value of the k 'th belief in set S.
Referenced by PerseusPOMDPPlanner::BackupStage(), PerseusBGPlanner::BackupStageSampling(), and PerseusBGPlanner::BackupStageSamplingAlt().
int BeliefValue::GetMaximizingVectorIndex | ( | const JointBeliefInterface & | b, |
const VectorSet & | v | ||
) |
Returns the index of the vector in v that maximizes the value of b.
Definition at line 208 of file BeliefValue.cpp.
References BeliefInterface::InnerProduct().
Referenced by AlphaVectorPOMDP::BeliefBackup(), AlphaVectorBG::BeliefBackupExhaustiveOnlyKeepMax(), AlphaVectorBG::BeliefBackupExhaustiveStoreAll(), and PerseusStationary::GetQ().
int BeliefValue::GetMaximizingVectorIndex | ( | const JointBeliefInterface & | b, |
const ValueFunctionPOMDPDiscrete & | V | ||
) |
Definition at line 234 of file BeliefValue.cpp.
References BeliefInterface::InnerProduct().
int BeliefValue::GetMaximizingVectorIndex | ( | const JointBeliefInterface & | b, |
const VectorSet & | v, | ||
const std::vector< bool > & | mask | ||
) |
Returns the index of the vector in v that maximizes the value of b.
If no vector has its mask enabled, the function returns -1.
Only vectors whose mask is true will be considered.
Definition at line 263 of file BeliefValue.cpp.
References BeliefInterface::InnerProduct().
int BeliefValue::GetMaximizingVectorIndexAndValue | ( | const JointBeliefInterface & | b, |
const VectorSet & | v, | ||
const std::vector< bool > & | mask, | ||
double & | value | ||
) |
Definition at line 311 of file BeliefValue.cpp.
References BeliefInterface::InnerProduct().
Referenced by AlphaVectorBG::BeliefBackupBGIP_Solver().
double BeliefValue::GetValue | ( | const JointBeliefInterface & | Belief, |
const AlphaVector & | alpha | ||
) |
Get the value of a single Belief for alpha vecotr alpha.
Definition at line 87 of file BeliefValue.cpp.
References AlphaVector::GetValues(), and BeliefInterface::InnerProduct().
Referenced by PerseusStationary::GetQ(), GetValue(), Perseus::PlanEndOfIteration(), and Perseus::PlanStartOfIteration().
double BeliefValue::GetValue | ( | const JointBeliefInterface & | Belief, |
const ValueFunctionPOMDPDiscrete & | V | ||
) |
Get the value of a single Belief for value function V.
Get the value of a single Belief for q functions Q.
Definition at line 127 of file BeliefValue.cpp.
References GetValues(), and BeliefInterface::InnerProduct().
double BeliefValue::GetValue | ( | const JointBeliefInterface & | Belief, |
const QFunctionsDiscreteNonStationary & | Q, | ||
Index | t | ||
) |
Get the value of a single Belief for non-stationary q functions Q.
Definition at line 108 of file BeliefValue.cpp.
References GetValue().
double BeliefValue::GetValue | ( | const JointBeliefInterface & | Belief, |
const ValueFunctionPOMDPDiscrete & | V, | ||
const std::vector< bool > | mask | ||
) |
Get the value of a single Belief for V given the mask.
Definition at line 145 of file BeliefValue.cpp.
References GetValues(), and BeliefInterface::InnerProduct().
double BeliefValue::GetValue | ( | const JointBeliefInterface & | Belief, |
const VectorSet & | v, | ||
const std::vector< bool > | mask | ||
) |
Get the value of a Belief for v given the mask.
Definition at line 174 of file BeliefValue.cpp.
References BeliefInterface::InnerProduct().
std::vector<double> BeliefValue::GetValues | ( | const BeliefSet & | Beliefs, |
const ValueFunctionPOMDPDiscrete & | V | ||
) |
Get the values of the Beliefs for value function V.
Get the values of the Beliefs for q functions Q.
Referenced by PerseusPOMDPPlanner::BackupStage(), PerseusBGPlanner::BackupStageAll(), PerseusBGPlanner::BackupStageSampling(), PerseusBGPlanner::BackupStageSamplingAlt(), PerseusStationary::GetImmediateRewardBeliefSet(), GetValue(), PerseusQFunctionPlanner::Plan(), and PerseusPOMDPPlanner::Plan().
std::vector<double> BeliefValue::GetValues | ( | const BeliefSet & | Beliefs, |
const AlphaVector & | alpha | ||
) |
Get the values of the Beliefs for alpha vector alpha.