Hypothesis
- class ssapy.correlate_tracks.Hypothesis(tracks, nsat=1000)[source][source]
Bases:
object
Assignment of detections to multiple tracks.
This class represents an assignment of detections to multiple tracks. The goal of Multiple Hypothesis Tracking to to find the Hypothesis (track assignment) that has the highest likelihood.
- Parameters:
tracks (list of Tracks) – The tracks in the hypothesis. Each track must correspond to different observations, and all observations under consideration must be accounted for
Methods Summary
addto
(hypothesis, track[, oldtrack])Add a new track to a Hypothesis.
difference
(hypothesis)Print the difference between two hypotheses.
Number of observations in tracks in the hypothesis.
summarize
([verbose])Summarize the Hypothesis as a string.
Methods Documentation
- static addto(hypothesis, track, oldtrack=None, **kw)[source][source]
Add a new track to a Hypothesis.
- Parameters:
hypothesis (Hypothesis) – hypothesis to which to add
track (Track) – track to add to hypothesis
oldtrack (Track) – track to remove from hypothesis, if the new track updates the old track.
- Returns:
new Hypothesis, with track added, replacing oldtrack if oldtrack is
not None.
- difference(hypothesis)[source][source]
Print the difference between two hypotheses.
Often two hypotheses are very similar. This makes it easier to inspect only the differences between them.
- Parameters:
hypothesis (Hypothesis) – hypothesis to which to compare this hypothesis