libcity.model.map_matching.HMMM¶
-
class
libcity.model.map_matching.HMMM.
HMMM
(config, data_feature)[source]¶ Bases:
libcity.model.abstract_traffic_tradition_model.AbstractTraditionModel
Hidden Markov Map Matching Through Noise and Sparseness
-
_get_candidates
()[source]¶ get candidates of each GPS sample with given road network :returns:
- a list of list.
In each list are tuples (edge, distance, node)
- Return type
self.candidates
-
_preprocess
()[source]¶ removing points that are within 2 sigma_z of the previous included point The justification for this step is that until we see a point that is at least 2sigma_z away from its temporal predecessor, our confidence is low that the apparent movement is due to actual vehicle movement and not noise Returns:
-