10 #ifndef FMM_FMM_ALGORITHM_H_
11 #define FMM_FMM_ALGORITHM_H_
13 #include "network/network.hpp"
14 #include "network/network_graph.hpp"
15 #include "mm/transition_graph.hpp"
16 #include "mm/fmm/ubodt.hpp"
17 #include "python/pyfmm.hpp"
20 #include <boost/property_tree/ptree.hpp>
21 #include <boost/property_tree/xml_parser.hpp>
23 #include "cxxopts/cxxopts.hpp"
58 const boost::property_tree::ptree &xml_data);
65 const cxxopts::ParseResult &arg_data);
83 std::shared_ptr<UBODT> ubodt)
84 : network_(network), graph_(graph), ubodt_(ubodt) {
132 std::shared_ptr<UBODT> ubodt_;
137 #endif //FMM_FMM_ALGORITHM_H_
Transition graph class in HMM.
Fast map matching algorithm/model.
FastMapMatchConfig(int k_arg=8, double r_arg=300, double gps_error=50)
Constructor of FastMapMatch configuration.
double get_sp_dist(const Candidate *ca, const Candidate *cb)
Get shortest path distance between two candidates.
Map matched result representation.
double radius
Search radius.
double gps_error
GPS error.
POD Match result type used in Python API.
void update_layer(int level, TGLayer *la_ptr, TGLayer *lb_ptr, double eu_dist)
Update probabilities between two layers a and b in the transition graph.
static FastMapMatchConfig load_from_xml(const boost::property_tree::ptree &xml_data)
Load configuration from xml data.
void print() const
Print information about this configuration.
Candidate edge matched to a GPS point
int k
Number of candidates.
Graph class of the network.
FastMapMatch(const NETWORK::Network &network, const NETWORK::NetworkGraph &graph, std::shared_ptr< UBODT > ubodt)
Constructor of Fast map matching model.
PYTHON::PyMatchResult match_wkt(const std::string &wkt, const FastMapMatchConfig &config)
Match a wkt linestring to the road network.
MatchResult match_traj(const CORE::Trajectory &traj, const FastMapMatchConfig &config)
Match a trajectory to the road network.
void update_tg(TransitionGraph *tg, const CORE::Trajectory &traj, const FastMapMatchConfig &config)
Update probabilities in a transition graph.
bool validate() const
Check if the configuration is valid or not.
std::vector< TGNode > TGLayer
A layer of nodes in the transition graph.
Configuration class for fmm algorithm.
static FastMapMatchConfig load_from_arg(const cxxopts::ParseResult &arg_data)
Load configuration from argument data.