SimpleMatcher

class leuvenmapmatching.matcher.simple.SimpleMatcher(*args, **kwargs)[source]

A simple matcher that prefers paths where each matched location is as close as possible to the observed position.

Parameters:
  • avoid_goingback – Change the transition probability to be lower for the direction the path is coming from.
  • kwargs – Arguments passed to BaseMatcher.
logprob_obs(dist, prev_m, new_edge_m, new_edge_o, is_ne=False)[source]

Emission probability.

Note: In contrast with a regular HMM, this is not a probability density function, it needs
to be a proper probability (thus values between 0.0 and 1.0).
logprob_trans(prev_m: leuvenmapmatching.matcher.base.BaseMatching, edge_m: leuvenmapmatching.util.segment.Segment, edge_o: leuvenmapmatching.util.segment.Segment, is_prev_ne=False, is_next_ne=False)[source]

Transition probability.

Note: In contrast with a regular HMM, this is not a probability density function, it needs
to be a proper probability (thus values between 0.0 and 1.0).