jagodki / Offline-MapMatching

a QGIS-plugin for matching a trajectory with a network using a Hidden Markov Model and Viterbi algorithm
GNU General Public License v3.0
167 stars 51 forks source link

Direct Probability condition #25

Closed brunoeducsantos closed 5 years ago

brunoeducsantos commented 5 years ago

Hi @jagodki , In order to work the following direct probability computation,

if self.points_on_network == -1:
            self.direction_probability = None

must be assigned after, self.direction_probability = p_intermediate

Do you agree?

Regards, Bruno

jagodki commented 5 years ago

What a mistake I did, than you very much for finding solving it 😸 I will create a new version with some other improvements related to the direction probability as fast as possible.