Make number of candidates a parameter

This commit is contained in:
Patrick Niklaus 2015-02-13 11:01:03 +01:00
parent b3fa03043d
commit 0c3102721c
2 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,7 @@ template <class DataFacadeT> class MapMatchingPlugin : public BasePlugin
candidates, candidates,
last_distance/2.0, last_distance/2.0,
5, 5,
20)) Matching::max_number_of_candidates))
{ {
return false; return false;
} }

View File

@ -70,6 +70,7 @@ namespace Matching
typedef std::vector<std::pair<PhantomNode, double>> CandidateList; typedef std::vector<std::pair<PhantomNode, double>> CandidateList;
typedef std::vector<CandidateList> CandidateLists; typedef std::vector<CandidateList> CandidateLists;
typedef std::pair<PhantomNodes, double> PhantomNodesWithProbability; typedef std::pair<PhantomNodes, double> PhantomNodesWithProbability;
constexpr static const unsigned max_number_of_candidates = 20;
} }
// implements a hidden markov model map matching algorithm // implements a hidden markov model map matching algorithm