Expand description
Probability calculation module
Implements exponential decay probability formulas for distance and heading, and transition probability for HMM-based map matching.
Functions§
- calculate_
combined_ probability - Calculate combined probability from distance and heading components.
- calculate_
distance_ probability - Calculate probability based on distance using exponential decay.
- calculate_
heading_ probability - Calculate probability based on heading difference using exponential decay.
- calculate_
transition_ probability - Calculate transition probability between two map-matched candidates using the Newson & Krumm (2009) formula.
- is_
near_ netelement_ edge - Check whether a candidate’s projected point is near a netelement endpoint.