Commit ab2dfa5f authored by Chanelle Lee's avatar Chanelle Lee
Browse files

Zero division trigger not needed - should actually just return the belief unchanged.

parent bd7182be
......@@ -74,7 +74,8 @@ py::array_t<double> update_on_evidence(int evidence_id, double distrust,
if (denominator == 0)
{
throw std::runtime_error("Division by zero condition");
/* Inconsistancy between distrust and belief so don't update*/
return belief;
}
for (int i = 0; i < belief_buf.size; ++i)
......
Supports Markdown
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