38 #define IndividualBeliefJESP_doSanityCheckAfterEveryUpdate 0
51 size_t nrJOH_others = 1;
59 nrJOH_others *= nrOH_j;
62 size_t size = nrS * nrJOH_others;
63 _m_b = vector<double>(size,0.0);
91 if (
this == &o)
return *
this;
94 throw E(
"IndividualBeliefJESP assignment operator not implemented yet");
107 vector<Index> withinStageOHIndices_o =
111 for(
Index j=0; j < withinStageOHIndices_o.size(); j++)
114 return(withinStageOHIndices_o);
118 const vector<Index>& oHist_others)
const
121 vector<Index> withinStageOHIndices_o = vector<Index>(oHist_others.size());
122 for(
Index j=0; j < withinStageOHIndices_o.size(); j++)
123 withinStageOHIndices_o[j] = oHist_others[j] -
_m_pumadp->
140 _m_b = vector<double>(
_m_b.size(), 0.0);
143 vector<double> newJB_unnorm;
145 size_t nrJO_others = 1;
146 vector<Index> otherAgentIndices;
147 vector<size_t> nrO_others;
154 nrJO_others *= nrO_j;
155 nrO_others.push_back(nrO_j);
156 otherAgentIndices.push_back(j);
159 for(
Index prev_eI=0; prev_eI < b_prev.
Size(); prev_eI++)
162 vector<Index> prev_oHist_others = b_prev.
166 for(
Index j=0; j < otherAgentIndices.size(); j++)
168 Index ag_j = otherAgentIndices[j];
169 Index prev_oHist_j = prev_oHist_others[j];
171 actions.at(ag_j) = act_j;
182 GetTransitionProbability(prev_sI, jaI, next_sI);
184 for(
Index JO_o=0; JO_o < nrJO_others; JO_o++)
190 for(
Index j=0; j < otherAgentIndices.size(); j++)
191 oIs.at( otherAgentIndices.at(j) ) = oIs_others.at(j);
205 vector<Index> next_oHist_others;
206 for(
Index j=0; j < otherAgentIndices.size(); j++)
209 prev_oHist_others[j], oIs_others[j] );
210 next_oHist_others.push_back(next_oHist_j);
219 double Pso_sa = Po_as * Ps_as * b_prev.
Get(prev_eI);
220 _m_b.at(next_eI) += Pso_sa;