Modified the logic for updating on backtracking to ensure that the se… #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated Content
Change
The latitude and longitude of the observation are used to determine the insertion position of the convergent sequence, rather than the indexs that previously indicated the insertion relationship.
Introduction
Modified the logic for updating on backtracking to ensure that the sequences replaced by online viterbi backtracking are correctly corresponding.
Others
Note: For some cases where the convergence sequence is in the middle, only the candidate points that are consistent with the observations are updated, this step will reduce the accuracy a bit, but it can ensure that the candidate points before and after the update are corresponding to the same.
Example:
The convergent sequence generally corresponds to the original sequence from the first (second) point to the penultimate first (second) point, but there are some cases where the convergent sequence will be made to correspond to the original sequence from the middle (possibly the fifth point), and the ending position is usually not the penultimate first (second) position either (it may be the penultimate fifth point), and in this case we will only update those nodes between the fifth and the penultimate fifth points.