libcity.model.map_matching.HMMM

class libcity.model.map_matching.HMMM.HMMM(config, data_feature)[源代码]

基类:libcity.model.abstract_traffic_tradition_model.AbstractTraditionModel

Hidden Markov Map Matching Through Noise and Sparseness

_find_matched_sequence()[源代码]

Viterbi Algorithm Returns:

_get_candidates()[源代码]

get candidates of each GPS sample with given road network :returns:

a list of list.

In each list are tuples (edge, distance, node)

返回类型

self.candidates

_observation_probability()[源代码]

Returns:

_preprocess()[源代码]

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:

_run_one_tra()[源代码]

run ST-Matching for one trajectory self.trajectory self.rd_nwk Returns:

_set_lon_lat_radius(lon, lat)[源代码]

get longitude range & latitude range (because radius is actually achieved by a grid search) :param lon: longitude local :param lat: latitude local :param self.r:

返回

self.lon_r self.lat_r

_transmission_probability()[源代码]

Returns:

run(data)[源代码]
参数

data – input of tradition model

返回

output of tradition model