Commit 229076dc authored by Amelie Royer's avatar Amelie Royer
Browse files

correcting sampled belief initialization

parent 85afb973
...@@ -39,6 +39,7 @@ namespace AIToolbox { ...@@ -39,6 +39,7 @@ namespace AIToolbox {
struct BeliefNode { struct BeliefNode {
BeliefNode() : obs(0), N(0) {} BeliefNode() : obs(0), N(0) {}
BeliefNode(size_t o) : obs(o), N(0) {} BeliefNode(size_t o) : obs(o), N(0) {}
BeliefNode(size_t o, size_t s) : obs(o), smplbelief(1, s), N(0) {}
ActionNodes children; ActionNodes children;
SampleBelief smplbelief; SampleBelief smplbelief;
Belief envbelief; Belief envbelief;
...@@ -451,7 +452,7 @@ namespace AIToolbox { ...@@ -451,7 +452,7 @@ namespace AIToolbox {
} else { } else {
aNode.children.emplace(std::piecewise_construct, aNode.children.emplace(std::piecewise_construct,
std::forward_as_tuple(o), std::forward_as_tuple(o),
std::forward_as_tuple(s1)); std::forward_as_tuple(o, s1));
} }
// get the reward // get the reward
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment