Mark suspicious transitions
This commit is contained in:
@@ -103,7 +103,8 @@ struct MatchingDebugInfo
|
||||
}
|
||||
|
||||
void set_viterbi(const std::vector<std::vector<double>> &viterbi,
|
||||
const std::vector<std::vector<bool>> &pruned)
|
||||
const std::vector<std::vector<bool>> &pruned,
|
||||
const std::vector<std::vector<bool>> &suspicious)
|
||||
{
|
||||
// json logger not enabled
|
||||
if (!logger)
|
||||
@@ -119,6 +120,8 @@ struct MatchingDebugInfo
|
||||
osrm::json::clamp_float(viterbi[t][s_prime]);
|
||||
osrm::json::get(*object, "states", t, s_prime, "pruned") =
|
||||
static_cast<unsigned>(pruned[t][s_prime]);
|
||||
osrm::json::get(*object, "states", t, s_prime, "suspicious") =
|
||||
static_cast<unsigned>(suspicious[t][s_prime]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user